diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 8 |
2 files changed, 13 insertions, 1 deletions
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 <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. + 2004-02-23 Not Zed <NotZed@Ximian.com> * 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)); |