diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-10-21 07:13:59 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-10-21 07:13:59 -0700 |
commit | e2f3114254a28d3d0a62bfb21e3a779c7a143a23 (patch) | |
tree | 8132b39177941e4a468f0ab27d4a9576423b0aab /gtk-gui.c | |
parent | e55b95b415e28e053ad3941f9bd3c41ea461ca58 (diff) | |
download | subsurface-e2f3114254a28d3d0a62bfb21e3a779c7a143a23.tar.gz |
Fix "Keep window size for new notebook pages" to not set minimum size
Turns out I used the wrong function to keep the size of notebook pages
that were ripped off. Using gtk_widget_set_size_request on the new
notebook creates a hard minimum size for this window.
Instead we should use gtk_window_set_default_size on the new window that
is the parent of the notebook. This has the desired effect of creating the
new window with the same size as the one the page was ripped off from -
without making that the minimum size for this window.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -558,7 +558,7 @@ static GtkNotebook *create_new_notebook_window(GtkNotebook *source, gtk_drag_dest_set(notebook, 0, NULL, 0, 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 6); gtk_widget_get_allocation(page, &allocation); - gtk_widget_set_size_request(notebook, allocation.width, allocation.height); + gtk_window_set_default_size(GTK_WINDOW(win), allocation.width, allocation.height); gtk_widget_show_all(win); return GTK_NOTEBOOK(notebook); |