aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-view.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 54a5e691b4..bc51e17655 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-30 Ettore Perazzoli <ettore@ximian.com>
+
+ * e-shell-view.c (e_shell_view_construct): Connect to the
+ "removed_folder" signal with gtk_signal_connect_while_alive() so
+ we don't crash if the view gets destroyed. Fixes #13285.
+
2001-10-30 <NotZed@Ximian.com>
* e-shell-startup-wizard.c (next_func): If we're not at the end of
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index f50dcb685b..fc090204e0 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1411,8 +1411,9 @@ e_shell_view_construct (EShellView *shell_view,
GTK_SIGNAL_FUNC (shell_line_status_changed_cb), shell_view,
GTK_OBJECT (shell_view));
- gtk_signal_connect (GTK_OBJECT (e_shell_get_storage_set (shell)), "removed_folder",
- GTK_SIGNAL_FUNC (storage_set_removed_folder_callback), shell_view);
+ gtk_signal_connect_while_alive (GTK_OBJECT (e_shell_get_storage_set (shell)), "removed_folder",
+ GTK_SIGNAL_FUNC (storage_set_removed_folder_callback), shell_view,
+ GTK_OBJECT (shell_view));
e_shell_user_creatable_items_handler_setup_menus (e_shell_get_user_creatable_items_handler (priv->shell),
shell_view);