aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-11-01 00:59:43 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-11-01 00:59:43 +0800
commit895bbf96110e448b402a45fa6ef40aaf67674e09 (patch)
tree4977723760b4962f09f39627c7f0e37f63933743
parent989fe42c680701688b3e2427e0284d95a79624f1 (diff)
downloadgsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar.gz
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar.bz2
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar.lz
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar.xz
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.tar.zst
gsoc2013-evolution-895bbf96110e448b402a45fa6ef40aaf67674e09.zip
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
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-storage-set-view.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index ba039e3e82..77331f8bf3 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -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.
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 70538cd9ef..d94160d53d 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -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)