From 0343b45ce165c32278b41e8b371946526eca6f3a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 23 Feb 2004 18:36:14 +0000 Subject: We want UID_LISTs to drop with the MOVE action by default. Fixes a common 2004-02-23 Jeffrey Stedfast * 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 --- mail/ChangeLog | 6 ++++++ mail/em-folder-tree.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index ec9e01593a..296a18bd7a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2004-02-23 Jeffrey Stedfast + + * 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. + 2004-02-23 Not Zed * em-format.c (emf_multipart_signed): check mps->protocol != NULL 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)); -- cgit v1.2.3