aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-10-31 04:34:49 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-31 04:34:49 +0800
commitd42a48e07c80497cde0d7096dba119e25fe49d6a (patch)
tree63873d048f9bea9496105d84b31198d2603886f3 /shell
parentefe4fc5ee64497b27cef6aff8d573cafe6f418a3 (diff)
downloadgsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar.gz
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar.bz2
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar.lz
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar.xz
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.tar.zst
gsoc2013-evolution-d42a48e07c80497cde0d7096dba119e25fe49d6a.zip
Connect to the "removed_folder" signal with
* 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. svn path=/trunk/; revision=14478
Diffstat (limited to 'shell')
-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);