aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2009-08-07 01:26:38 +0800
committerLouis-Francis Ratté-Boulianne <louis-francis.ratte-boulianne@collabora.co.uk>2009-08-07 01:26:38 +0800
commiteccbc315b01b7030653191ac1e2b4475dc682fd1 (patch)
treeb9d3214385930aeb4aff3ab849f98c96c2b44ae8
parentbb29218b8ad4e92e03f8b87236c9843392c5c0d9 (diff)
downloadgsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar.gz
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar.bz2
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar.lz
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar.xz
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.tar.zst
gsoc2013-empathy-eccbc315b01b7030653191ac1e2b4475dc682fd1.zip
Move contact when drag'n'dropped (Fix #585443)
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c8
1 files changed, 8 insertions, 0 deletions
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;
}