From d0782a45b1e4772162a31ac768d33978b122695a Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 23 Oct 2002 17:45:58 +0000 Subject: Set the is_stock flag to TRUE for the summary folder. * e-shell.c (setup_local_storage): Set the is_stock flag to TRUE for the summary folder. * e-shell-view.c (setup_verb_sensitivity_for_folder): Don't allow folder operations on pseudo-folders that have a NULL physical_uri. * e-corba-storage.c (async_remove_folder): Make sure the folder has a physical URI. [#30950] * e-shell-shared-folder-picker-dialog.c (setup_server_option_menu): Use e_utf8_gtk_menu_item_new_with_label() to create the option menu items from the storage's UTF-8 name. [#31564] svn path=/trunk/; revision=18419 --- shell/e-shell-view.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 1e5d04436c..22248815d9 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -308,9 +308,11 @@ setup_verb_sensitivity_for_folder (EShellView *shell_view, folder = e_storage_set_get_folder (e_shell_get_storage_set (priv->shell), path); /* Adjust sensitivity for menu options depending on whether the folder - selected is a stock folder. */ + selected can actually be manipulated or not. */ - if (folder != NULL && ! e_folder_get_is_stock (folder)) + if (folder != NULL + && ! e_folder_get_is_stock (folder) + && e_folder_get_physical_uri (folder) != NULL) prop = "1"; else prop = "0"; @@ -621,7 +623,6 @@ storage_set_view_box_button_release_event_cb (GtkWidget *widget, return FALSE; popdown_transient_folder_bar (shell_view); - return TRUE; } -- cgit