diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-26 14:36:58 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-26 14:36:58 +0800 |
commit | db5b79ff2cd721e79fe930587cfdc84abd3ce2b7 (patch) | |
tree | 9a94614128483b669761fde087ab254c6bf7ce02 /mail | |
parent | a53c11fd0af71ecbec3a643a4cbe62d3b6ea8883 (diff) | |
download | gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar.gz gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar.bz2 gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar.lz gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar.xz gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.tar.zst gsoc2013-evolution-db5b79ff2cd721e79fe930587cfdc84abd3ce2b7.zip |
Bug #362366 - Dragging selected folder to message pane duplicates messages
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 70922b8e05..3f55d2cf0f 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2363,6 +2363,19 @@ ml_tree_drag_motion (ETree *tree, GdkDragContext *context, gint x, gint y, guint return TRUE; } + if (EM_IS_FOLDER_TREE (gtk_drag_get_source_widget (context))) { + EMFolderTree *folder_tree; + CamelFolder *folder; + + folder_tree = EM_FOLDER_TREE (gtk_drag_get_source_widget (context)); + folder = em_folder_tree_get_selected_folder (folder_tree); + + if (folder == ml->folder) { + gdk_drag_status (context, 0, time); + return TRUE; + } + } + targets = gdk_drag_context_list_targets (context); while (targets != NULL) { gint i; |