aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-02-24 02:36:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-02-24 02:36:14 +0800
commit0343b45ce165c32278b41e8b371946526eca6f3a (patch)
treefc8d288600c7f8d380f33bb8f82ba4c4dac7276e /mail/em-folder-tree.c
parentb4891b3326bf5c00a57af3acc7b6991043b4ed25 (diff)
downloadgsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.gz
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.zst
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.zip
We want UID_LISTs to drop with the MOVE action by default. Fixes a common
2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_motion): We want UID_LISTs to drop with the MOVE action by default. Fixes a common complaint from IRC. svn path=/trunk/; revision=24832
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index fa537761ab..58f6be9f60 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -1201,6 +1201,12 @@ tree_drag_motion (GtkWidget *widget, GdkDragContext *context, int x, int y, guin
action = GDK_ACTION_MOVE;
gtk_tree_view_set_drag_dest_row(priv->treeview, path, GTK_TREE_VIEW_DROP_AFTER);
break;
+ case DND_DROP_TYPE_UID_LIST:
+ action = context->suggested_action;
+ if (context->actions & GDK_ACTION_MOVE)
+ action = GDK_ACTION_MOVE;
+ gtk_tree_view_set_drag_dest_row(priv->treeview, path, GTK_TREE_VIEW_DROP_INTO_OR_AFTER);
+ break;
default:
gtk_tree_view_set_drag_dest_row(priv->treeview, path, GTK_TREE_VIEW_DROP_INTO_OR_AFTER);
action = context->suggested_action;
@@ -1222,8 +1228,8 @@ void
em_folder_tree_enable_drag_and_drop (EMFolderTree *emft)
{
struct _EMFolderTreePrivate *priv;
+ static int setup = 0;
int i;
- static int setup;
g_return_if_fail (EM_IS_FOLDER_TREE (emft));