summaryrefslogtreecommitdiff
path: root/gtk/gtkdragsource.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-27 03:31:39 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-27 14:32:28 +0200
commit56cc470663e1b7b5c62ae2bbc01417b21f988dbd (patch)
tree7930fd6d49361771a38232b9de9ba7bc79d112b1 /gtk/gtkdragsource.c
parentaca20dbb78c8453048c24e93fa568bfe5b879f9b (diff)
downloadgtk+-56cc470663e1b7b5c62ae2bbc01417b21f988dbd.tar.gz
dragsource: Use capture phase for gesture
Otherwise buttons don't work as drag sources, and we like to do that.
Diffstat (limited to 'gtk/gtkdragsource.c')
-rw-r--r--gtk/gtkdragsource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c
index b74c12ee03..3d228effa6 100644
--- a/gtk/gtkdragsource.c
+++ b/gtk/gtkdragsource.c
@@ -146,7 +146,7 @@ gtk_drag_source_set (GtkWidget *widget,
site->image_def = gtk_image_definition_new_empty ();
site->drag_gesture = gtk_gesture_drag_new (widget);
gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (site->drag_gesture),
- GTK_PHASE_BUBBLE);
+ GTK_PHASE_CAPTURE);
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (site->drag_gesture), 0);
g_signal_connect (site->drag_gesture, "begin",
G_CALLBACK (gtk_drag_source_gesture_begin),