aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parentb4891b3326bf5c00a57af3acc7b6991043b4ed25 (diff)
downloadgsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.gz
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.bz2
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.lz
gsoc2013-evolution-0343b45ce165c32278b41e8b371946526eca6f3a.tar.xz
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')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-folder-tree.c8
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));