diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-24 06:00:39 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-24 06:00:39 +0800 |
commit | 856e3689fbc785f1a7a9c0b5c3484052359a5eff (patch) | |
tree | 68c45510b302a46e974ce87dae4ee711f7d24a71 /shell/e-shell-view.c | |
parent | 46dd4414b9aae78bd569810238fa5106307a83eb (diff) | |
download | gsoc2013-evolution-856e3689fbc785f1a7a9c0b5c3484052359a5eff.tar.gz gsoc2013-evolution-856e3689fbc785f1a7a9c0b5c3484052359a5eff.tar.zst gsoc2013-evolution-856e3689fbc785f1a7a9c0b5c3484052359a5eff.zip |
Explicitly deactivate the control frame, and display the default URI
* e-shell-view.c (storage_set_removed_folder_callback): Explicitly
deactivate the control frame, and display the default URI before
destroying the dead one.
* e-shell.c (e_shell_component_maybe_crashed): If the URI is of a
folder that doesn't exist anymore, don't assume that the
corresponding component has crashed. Also, try pinging the
component first; if the component responds, don't pop up the
dialog.
svn path=/trunk/; revision=13960
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 5e501d55a5..c8be8588c8 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -364,14 +364,18 @@ storage_set_removed_folder_callback (EStorageSet *storage_set, page_num = gtk_notebook_page_num (GTK_NOTEBOOK (priv->notebook), view->control); + if (strncmp (priv->uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0 + && strcmp (priv->uri + E_SHELL_URI_PREFIX_LEN, path) == 0) { + e_shell_view_display_uri (shell_view, "evolution:/local/Inbox"); + } + + bonobo_control_frame_control_deactivate (BONOBO_CONTROL_FRAME (bonobo_widget_get_control_frame (BONOBO_WIDGET (view->control)))); gtk_widget_destroy (view->control); g_hash_table_remove (priv->uri_to_view, view->uri); view_destroy (view); gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook), page_num); - - e_shell_view_display_uri (shell_view, E_SHELL_VIEW_DEFAULT_URI); } |