diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-01-25 15:33:38 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-01-25 15:33:38 +0800 |
commit | 18f0b76b71d52376526dcd6cfc4f057c8d324084 (patch) | |
tree | 9e27e95336e5aac5a1290ee47c56871df0756433 | |
parent | 77ba5399031de0aba831e267a4b6ed6f0d51ca6c (diff) | |
download | gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar.gz gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar.bz2 gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar.lz gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar.xz gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.tar.zst gsoc2013-evolution-18f0b76b71d52376526dcd6cfc4f057c8d324084.zip |
Fix a bug that could happen when a shell view would be destroyed and
the unread message count would change in some folder.
svn path=/trunk/; revision=7803
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell-view.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 31b5ca076c..5066c3d790 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2001-01-25 Ettore Perazzoli <ettore@ximian.com> + + * e-shell-view.c (e_shell_view_construct): Connect the + "updated_folder" with `gtk_signal_connect_while_alive()' so that + it gets disconnected when the shell view dies. + 2001-01-24 Jason Leach <jasonleach@usa.net> (Fix #1252: Need a File->Close way to close a view) diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index b8b3aad980..27759f2fb1 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -938,8 +938,8 @@ e_shell_view_construct (EShellView *shell_view, priv->shell = shell; - gtk_signal_connect (GTK_OBJECT (e_shell_get_storage_set (priv->shell)), "updated_folder", - updated_folder_cb, shell_view); + gtk_signal_connect_while_alive (GTK_OBJECT (e_shell_get_storage_set (priv->shell)), "updated_folder", + updated_folder_cb, shell_view, GTK_OBJECT (shell_view)); container = bonobo_ui_container_new (); bonobo_ui_container_set_win (container, BONOBO_WINDOW (shell_view)); |