diff options
author | Florian Müllner <fmuellner@gnome.org> | 2015-12-23 01:51:30 +0100 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2015-12-23 14:07:00 +0100 |
commit | e20826fe033b0e512c784b83d2236de502ad8430 (patch) | |
tree | b94fa9c87ae7fbe494733a03392fd296dbdfbce9 | |
parent | c0bc0a9ac2cee05ef12ecc41b71debecdded8602 (diff) | |
download | gtk+-e20826fe033b0e512c784b83d2236de502ad8430.tar.gz |
label: Deny drag gesture when not selectable
We don't actually do anything when the label is not selectable
except for consuming the event, which breaks for instance titlebar
drags with labels that contain links. Simply deny the gesture in
that case to allow the event to bubble up normally.
https://bugzilla.gnome.org/show_bug.cgi?id=759798
-rw-r--r-- | gtk/gtklabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index f7e1445bba..af158e928f 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -5147,7 +5147,7 @@ gtk_label_drag_gesture_begin (GtkGestureDrag *gesture, const GdkEvent *event; gint min, max, index; - if (!info) + if (!info || !info->selectable) { gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED); return; |