[evolution] Bug #362366 - Dragging selected folder to message pane duplicates messages



commit db5b79ff2cd721e79fe930587cfdc84abd3ce2b7
Author: Milan Crha <mcrha redhat com>
Date:   Fri Aug 26 08:36:58 2011 +0200

    Bug #362366 - Dragging selected folder to message pane duplicates messages

 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 70922b8..3f55d2c 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]