aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index ccd5de6f31..2d50300183 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -353,6 +353,18 @@ shell_view_dispose (GObject *object)
}
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;
}