Sequences start in state gtk.types.EventSequenceState.None, and whenever
they change state, they can never go back to that state. Likewise,
sequences in state gtk.types.EventSequenceState.Denied cannot turn back to
a not denied state. With these rules, the lifetime of an event
sequence is constrained to the next four:
None
None → Denied
None → Claimed
None → Claimed → Denied
Note: Due to event handling ordering, it may be unsafe to set the
state on another gesture within a gtk.gesture.Gesture.begin signal
handler, as the callback might be executed before the other gesture
knows about the sequence. A safe way to perform this could be:
If both gestures are in the same group, just set the state on
the gesture emitting the event, the sequence will be already
be initialized to the group's global state when the second
gesture processes the event.
Sets the state of sequence in gesture.
Sequences start in state gtk.types.EventSequenceState.None, and whenever they change state, they can never go back to that state. Likewise, sequences in state gtk.types.EventSequenceState.Denied cannot turn back to a not denied state. With these rules, the lifetime of an event sequence is constrained to the next four:
Note: Due to event handling ordering, it may be unsafe to set the state on another gesture within a gtk.gesture.Gesture.begin signal handler, as the callback might be executed before the other gesture knows about the sequence. A safe way to perform this could be:
If both gestures are in the same group, just set the state on the gesture emitting the event, the sequence will be already be initialized to the group's global state when the second gesture processes the event.