diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-09-26 07:01:33 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-09-26 07:01:33 +0800 |
commit | 58755d5604d35422d133c39aab785078a40fb8b4 (patch) | |
tree | 7165ced9ace8d48f596dff2908fb436d4594319e /shell/e-storage.c | |
parent | 3420538a5c595b67da2a59c590a7aa628046ffb7 (diff) | |
download | gsoc2013-evolution-58755d5604d35422d133c39aab785078a40fb8b4.tar.gz gsoc2013-evolution-58755d5604d35422d133c39aab785078a40fb8b4.tar.zst gsoc2013-evolution-58755d5604d35422d133c39aab785078a40fb8b4.zip |
[Implemented the "Rename" command. Warning, it doesn't quite work
yet, as there seems to be something wrong still.]
* e-storage.c (e_storage_async_xfer_folder): Ooops. Make the
check for CANTMOVETODESCENDANT really work.
* e-storage-set-view.c (tree_drag_data_received): Pass the
EStorageSetView as the data for the async_xfer function.
(folder_xfer_callback): Display an error dialog if something goes
wrong.
* e-shell-view-menu.c (command_rename_folder): Enable again.
* e-shell-folder-commands.c (e_shell_command_rename_folder):
Re-implemented.
(delete_dialog): Use double quotes instead of single quotes around
the folder name, for consistency with the other dialogs.
svn path=/trunk/; revision=13131
Diffstat (limited to 'shell/e-storage.c')
-rw-r--r-- | shell/e-storage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/e-storage.c b/shell/e-storage.c index 17c8d94f14..f482a0f6ce 100644 --- a/shell/e-storage.c +++ b/shell/e-storage.c @@ -468,10 +468,15 @@ e_storage_async_xfer_folder (EStorage *storage, g_return_if_fail (g_path_is_absolute (destination_path)); if (remove_source) { + int destination_len; int source_len; source_len = strlen (source_path); - if (strncmp (destination_path, source_path, source_len) == 0) { + destination_len = strlen (destination_path); + + if (source_len < destination_len + && destination_path[source_len] == G_DIR_SEPARATOR + && strncmp (destination_path, source_path, source_len) == 0) { (* callback) (storage, E_STORAGE_CANTMOVETODESCENDANT, data); return; } |