aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-05 00:56:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-05 00:57:40 +0800
commit369831e140c00a2578fb99c1e09fe369e80f0261 (patch)
tree425e91778e4d5fed97a9647f9f5f297c730c0250 /shell/e-shell-view.c
parent9b18df6a81ed7f01672b1fa53cbeb1de3dc4dde2 (diff)
downloadgsoc2013-evolution-369831e140c00a2578fb99c1e09fe369e80f0261.tar.gz
gsoc2013-evolution-369831e140c00a2578fb99c1e09fe369e80f0261.tar.zst
gsoc2013-evolution-369831e140c00a2578fb99c1e09fe369e80f0261.zip
Fix crash when second main window is closed.
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;
}