If the source folder is stock and the operation is GDK_ACTION_MOVE, always

* e-storage-set-view.c (handle_evolution_path_drag_motion): If the
source folder is stock and the operation is GDK_ACTION_MOVE,
always return %FALSE as we don't want that to be allowed ever.

svn path=/trunk/; revision=14543
This commit is contained in:
Ettore Perazzoli
2001-10-31 16:59:43 +00:00
parent 989fe42c68
commit 895bbf9611
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-10-31 Ettore Perazzoli <ettore@ximian.com>
* e-storage-set-view.c (handle_evolution_path_drag_motion): If the
source folder is stock and the operation is GDK_ACTION_MOVE,
always return %FALSE as we don't want that to be allowed ever.
2001-10-30 Ettore Perazzoli <ettore@ximian.com>
* e-shell-view.c (bonobo_widget_is_dead): Removed.

View File

@ -1016,10 +1016,15 @@ handle_evolution_path_drag_motion (EStorageSetView *storage_set_view,
source_path = e_storage_set_view_get_current_folder (storage_set_view);
if (source_path != NULL) {
EFolder *folder;
int source_path_len;
const char *destination_path_base;
char *destination_path;
folder = e_storage_set_get_folder (priv->storage_set, source_path);
if (folder != NULL && e_folder_get_is_stock (folder))
return FALSE;
source_path_len = strlen (path);
destination_path_base = e_tree_memory_node_get_data (E_TREE_MEMORY (priv->etree_model), path);
if (strcmp (destination_path_base, source_path) == 0)