diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-03 02:21:01 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-03 02:21:01 +0800 |
commit | df580510c9788caa00731e6bbd227388b91f4695 (patch) | |
tree | 95e44dee9a9331775cbde973da31d78da4403615 /shell/e-shell-folder-commands.c | |
parent | 3695ce0e609d1e548402934b53c3a8b504aa19cf (diff) | |
download | gsoc2013-evolution-df580510c9788caa00731e6bbd227388b91f4695.tar.gz gsoc2013-evolution-df580510c9788caa00731e6bbd227388b91f4695.tar.zst gsoc2013-evolution-df580510c9788caa00731e6bbd227388b91f4695.zip |
New, callback for the ::removed_folder signal on the shell's EStorageSet.
* e-shell-view.c (storage_set_removed_folder_callback): New,
callback for the ::removed_folder signal on the shell's
EStorageSet.
(e_shell_view_construct): Connect.
(e_shell_view_remove_control_for_uri): Removed.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Don't call
`e_shell_view_remove_control_for_uri()'.
(e_shell_command_delete_folder): Not here either. And don't
display the default URI either.
svn path=/trunk/; revision=13305
Diffstat (limited to 'shell/e-shell-folder-commands.c')
-rw-r--r-- | shell/e-shell-folder-commands.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c index 7c8ad8316c..9a7d6008e7 100644 --- a/shell/e-shell-folder-commands.c +++ b/shell/e-shell-folder-commands.c @@ -196,10 +196,6 @@ folder_selection_dialog_folder_selected_callback (EShellFolderSelectionDialog *f storage_set = e_shell_get_storage_set (folder_command_data->shell); - if (remove_source) - e_shell_view_remove_control_for_uri (folder_command_data->shell_view, - e_shell_view_get_current_uri (folder_command_data->shell_view)); - e_storage_set_async_xfer_folder (storage_set, folder_command_data->source_path, folder_command_data->destination_path, @@ -445,17 +441,8 @@ e_shell_command_delete_folder (EShell *shell, if (folder_path == NULL) folder_path = e_shell_view_get_current_path (shell_view); - if (delete_dialog (shell_view, get_folder_name (shell, folder_path)) == 0) { - char *uri; - - uri = g_strconcat (E_SHELL_URI_PREFIX, folder_path, NULL); - e_shell_view_remove_control_for_uri (shell_view, uri); - g_free (uri); - + if (delete_dialog (shell_view, get_folder_name (shell, folder_path)) == 0) e_storage_set_async_remove_folder (storage_set, folder_path, delete_cb, shell_view); - - e_shell_view_display_uri (shell_view, E_SHELL_VIEW_DEFAULT_URI); - } } |