mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
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.
This commit is contained in:
parent
16eced7bf1
commit
d69fdaa04d
@ -2569,6 +2569,7 @@ gtk_notebook_gesture_pressed (GtkGestureClick *gesture,
|
|||||||
if (arrow != ARROW_NONE)
|
if (arrow != ARROW_NONE)
|
||||||
{
|
{
|
||||||
gtk_notebook_arrow_button_press (notebook, arrow, button);
|
gtk_notebook_arrow_button_press (notebook, arrow, button);
|
||||||
|
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user