diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-26 14:36:58 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:56 +0800 |
commit | daa655d67b2ed854b95e30193dee419258b036fb (patch) | |
tree | 90148bd404cac65b719808659e41be02814acedf /mail/message-list.c | |
parent | 36df40c1875388fc0825f38bf6150d98a9db6a89 (diff) | |
download | gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar.gz gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar.bz2 gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar.lz gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar.xz gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.tar.zst gsoc2013-evolution-daa655d67b2ed854b95e30193dee419258b036fb.zip |
Bug #362366 - Dragging selected folder to message pane duplicates messages
Diffstat (limited to 'mail/message-list.c')
-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; |