diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-05 04:15:04 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-05 04:15:04 +0800 |
commit | c95a226217a68703c48397c23ea8accc491d44e4 (patch) | |
tree | 5414478271970b0a761bc938e90ba1fc500942fc /shell/e-shell-view.c | |
parent | 369831e140c00a2578fb99c1e09fe369e80f0261 (diff) | |
download | gsoc2013-evolution-c95a226217a68703c48397c23ea8accc491d44e4.tar.gz gsoc2013-evolution-c95a226217a68703c48397c23ea8accc491d44e4.tar.zst gsoc2013-evolution-c95a226217a68703c48397c23ea8accc491d44e4.zip |
EShell cleanup + rework my previous crasher fix.
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 2d50300183..f580b1aa4e 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -352,23 +352,6 @@ shell_view_dispose (GObject *object) priv->shell_window = NULL; } - if (priv->size_group != NULL) { - GSList *list; - - /* Remove all widgets from the size group. */ - list = gtk_size_group_get_widgets (priv->size_group); - list = g_slist_copy (list); - - while (list != NULL) { - gtk_size_group_remove_widget ( - priv->size_group, list->data); - list = g_slist_delete_link (list, list); - } - - g_object_unref (priv->size_group); - priv->size_group = NULL; - } - if (priv->shell_content != NULL) { g_object_unref (priv->shell_content); priv->shell_content = NULL; @@ -429,6 +412,10 @@ shell_view_constructed (GObject *object) widget = shell_view_class->new_shell_taskbar (shell_view); shell_view->priv->shell_taskbar = g_object_ref_sink (widget); gtk_widget_show (widget); + + /* Size group should be safe to unreference now. */ + g_object_unref (shell_view->priv->size_group); + shell_view->priv->size_group = NULL; } static void @@ -957,6 +944,8 @@ e_shell_view_set_page_num (EShellView *shell_view, * to keep the search bar and sidebar banner vertically aligned. The * rest of the application should have no need for this. * + * Note, this is only available during #EShellView construction. + * * Returns: a #GtkSizeGroup for internal use **/ GtkSizeGroup * |