Returns a newly created gtk.gesture.Gesture that recognizes long presses.
Connect to Cancelled signal.
Connect to Pressed signal.
Returns the delay factor.
Applies the given delay factor.
Returns the button number gesture listens for.
Returns the button number currently interacting with gesture, or 0 if there is none.
Returns the event sequence currently interacting with gesture.
Gets whether a gesture is exclusive.
Returns true if the gesture is only triggered by touch events.
Sets the button number gesture listens to.
Sets whether gesture is exclusive.
Sets whether to handle only touch events.
gtk.gesture_long_press.GestureLongPress is a gtk.gesture.Gesture for long presses.
This gesture is also known as “Press and Hold”.
When the timeout is exceeded, the gesture is triggering the gtk.gesture_long_press.GestureLongPress.pressed signal.
If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the gtk.gesture_long_press.GestureLongPress.cancelled signal will be emitted.
How long the timeout is before the ::pressed signal gets emitted is determined by the property@Gtk.Settings:gtk-long-press-time setting. It can be modified by the property@Gtk.GestureLongPress:delay-factor property.