[gtk/matthiasc/for-master] text: Claim the sequence when we start selecting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] text: Claim the sequence when we start selecting
- Date: Sat, 12 Sep 2020 16:02:56 +0000 (UTC)
commit 0011a1032dcf6fd62c6f224f9322346444b7c312
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 12 11:18:36 2020 -0400
text: Claim the sequence when we start selecting
Without this, drag-select will only work sporadically
in entries in headerbars.
Fixes: #2994
gtk/gtktext.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 4fa9a77b21..2d13cd245b 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -3011,6 +3011,8 @@ gtk_text_drag_gesture_update (GtkGestureDrag *gesture,
guint length;
int tmp_pos;
+ gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
+
length = gtk_entry_buffer_get_length (get_buffer (self));
if (y < 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]