summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-20 22:30:44 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-20 22:30:44 +0300
commit312eaed464f9a569575c36226b77c9299d3bf38a (patch)
tree55f97e4cb25ac5c1135e8f9fbebc43c18cf2b535 /gtk-gui.c
parente919a0f2eac8bc4471b499b73a77c95e81240fd9 (diff)
parent2d02ac402ac8086d946f8a815104b30142ec83e5 (diff)
downloadsubsurface-312eaed464f9a569575c36226b77c9299d3bf38a.tar.gz
Merge branch 'guifixes' of git://github.com/dirkhh/subsurface
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index d3de7a649..351e7b9f4 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -529,6 +529,7 @@ static GtkNotebook *create_new_notebook_window(GtkNotebook *source,
{
GtkWidget *win, *notebook, *vbox;
notebook_data_t *nbdp;
+ GtkAllocation allocation;
/* pick the right notebook page data and return if both are detached */
if (nbd[0].widget == NULL)
@@ -556,7 +557,8 @@ static GtkNotebook *create_new_notebook_window(GtkNotebook *source,
/* disallow drop events */
gtk_drag_dest_set(notebook, 0, NULL, 0, 0);
gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 6);
- gtk_widget_set_size_request(notebook, 450, 350);
+ gtk_widget_get_allocation(page, &allocation);
+ gtk_widget_set_size_request(notebook, allocation.width, allocation.height);
gtk_widget_show_all(win);
return GTK_NOTEBOOK(notebook);