From eccbc315b01b7030653191ac1e2b4475dc682fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Thu, 6 Aug 2009 13:26:38 -0400 Subject: Move contact when drag'n'dropped (Fix #585443) --- libempathy-gtk/empathy-contact-list-view.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 783d986d0..a4dfa0f59 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -364,6 +364,7 @@ contact_list_view_drag_motion (GtkWidget *widget, gboolean is_row; gboolean is_different = FALSE; gboolean cleanup = TRUE; + int action = 0; is_row = gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (widget), x, @@ -382,6 +383,13 @@ contact_list_view_drag_motion (GtkWidget *widget, cleanup &= FALSE; } + if (context->actions == GDK_ACTION_COPY) { + action = context->suggested_action; + } else if (context->actions & GDK_ACTION_MOVE) { + action = GDK_ACTION_MOVE; + } + gdk_drag_status (context, action, time); + if (!is_different && !cleanup) { return TRUE; } -- cgit v1.2.3