[empathy: 5/17] Handle MOVE and COPY drags better, change contact-id drags to COPY



commit d068663d7d73c7dc54b560b3ed9846c218dd8f35
Author: Shaun McCance <Shaun McCance>
Date:   Tue Sep 15 15:57:51 2009 -0500

    Handle MOVE and COPY drags better, change contact-id drags to COPY

 src/empathy-chat-window.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 90d4f8f..36f31b0 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -116,8 +116,7 @@ static const GtkTargetEntry drag_types_dest[] = {
 	{ "text/uri-list", 0, DND_DRAG_TYPE_URI_LIST },
 };
 
-static const GtkTargetEntry drag_types_dest_noft[] = {
-	{ "text/contact-id", 0, DND_DRAG_TYPE_CONTACT_ID },
+static const GtkTargetEntry drag_types_dest_move[] = {
 	{ "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, DND_DRAG_TYPE_TAB },
 };
 
@@ -1340,14 +1339,17 @@ chat_window_drag_motion (GtkWidget        *widget,
 	GdkAtom target;
 
 	if (list == NULL) {
-		list = gtk_target_list_new (drag_types_dest_noft,
-					    G_N_ELEMENTS (drag_types_dest_noft));
+		list = gtk_target_list_new (drag_types_dest_move,
+					    G_N_ELEMENTS (drag_types_dest_move));
 	}
 
 	target = gtk_drag_dest_find_target (widget, context, list);
 	if (target == GDK_NONE) {
 		gdk_drag_status (context, GDK_ACTION_COPY, time);
 	}
+	else {
+		gdk_drag_status (context, GDK_ACTION_MOVE, time);
+	}
 }
 
 static void



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