[gtk/gtk-4-6: 3/5] gtknotebook: Claim event sequence after pressing notebook arrow buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-6: 3/5] gtknotebook: Claim event sequence after pressing notebook arrow buttons
- Date: Thu, 1 Sep 2022 17:24:16 +0000 (UTC)
commit 887c743e3dbae63550616a71702ce513154bf8b8
Author: Mat <mail mathias is>
Date: Sun Aug 28 23:34:27 2022 +0300
gtknotebook: Claim event sequence after pressing notebook arrow buttons
When notebook tabs are reorderable, pressing the notebook arrow buttons to
change the active tab results in tabs reordering unexpectedly.
Claim the event sequence after pressing an arrow button to avoid conflicts
with the motion/drag gesture used for reordering.
gtk/gtknotebook.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 1ad109f4fe..5e72ad0e80 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2605,6 +2605,7 @@ gtk_notebook_gesture_pressed (GtkGestureClick *gesture,
if (arrow != ARROW_NONE)
{
gtk_notebook_arrow_button_press (notebook, arrow, button);
+ gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]