diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-21 01:36:00 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-02-21 01:38:14 -0500 |
commit | 9531e7cb106f161d8a43da7ca161fac8becd3de6 (patch) | |
tree | 0de64701a85de6f2b12f1d73807492b9a469d637 /src/nautilus-window-pane.c | |
parent | 243a3f883f7b2969c11ddac8c6d46521ffa5ef4d (diff) | |
download | nautilus-9531e7cb106f161d8a43da7ca161fac8becd3de6.tar.gz |
window: plug a leak
Don't leak the GtkSizeGroup after we add widgets to it. Also, move it to
the pane, where it should belong now.
Diffstat (limited to 'src/nautilus-window-pane.c')
-rw-r--r-- | src/nautilus-window-pane.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-window-pane.c b/src/nautilus-window-pane.c index 216bf328b..e31e3d850 100644 --- a/src/nautilus-window-pane.c +++ b/src/nautilus-window-pane.c @@ -666,7 +666,8 @@ nautilus_window_pane_setup (NautilusWindowPane *pane) pane->widget = gtk_vbox_new (FALSE, 0); window = pane->window; - header_size_group = window->details->header_size_group; + header_size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL); + gtk_size_group_set_ignore_hidden (header_size_group, FALSE); /* build the toolbar */ action_group = nautilus_window_create_toolbar_action_group (window); @@ -752,6 +753,9 @@ nautilus_window_pane_setup (NautilusWindowPane *pane) * thus affect the default position of the split view paned. */ gtk_widget_set_size_request (pane->widget, 60, 60); + + /* we can unref the size group now */ + g_object_unref (header_size_group); } static void |