diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-15 13:18:49 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-07-15 13:18:49 +0800 |
commit | 05877aea9bad861887d7917bdeb53741b84aeb23 (patch) | |
tree | 6d40c69c8ff4c2e07e7399b5894756cb366d035b /shell/e-shell-view-menu.c | |
parent | f6b64ae1df4018a76f4ca65139c5880ac0d946f7 (diff) | |
download | gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar.gz gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar.bz2 gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar.lz gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar.xz gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.tar.zst gsoc2013-evolution-05877aea9bad861887d7917bdeb53741b84aeb23.zip |
Fix a crash that could happen by closing one or more views, and then
clicking on the off-line button.
svn path=/trunk/; revision=11107
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 2d7cd8e4a9..f8a0368d64 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -776,7 +776,8 @@ e_shell_view_menu_setup (EShellView *shell_view) SHORTCUT_BAR_TOGGLE_PATH); /* Set up the work online / work offline menu item. */ - gtk_signal_connect (GTK_OBJECT (shell), "line_status_changed", - GTK_SIGNAL_FUNC (shell_line_status_changed_cb), shell_view); + gtk_signal_connect_while_alive (GTK_OBJECT (shell), "line_status_changed", + GTK_SIGNAL_FUNC (shell_line_status_changed_cb), shell_view, + GTK_OBJECT (shell_view)); update_offline_menu_item (shell_view, e_shell_get_line_status (shell)); } |