Package: gtk

Function gtk-scrolled-window-capture-button-press

Lambda List

gtk-scrolled-window-capture-button-press (window)

Syntax

(gtk-scrolled-window-capture-button-press window) => capture
(setf (gtk-scrolled-window-capture-button-press window) capture)

Arguments

window -- a gtk-scrolled-window widget
capture -- true to capture button presses

Details

Whether button presses are captured during kinetic scrolling.

The gtk-scrolled-window-capture-button-press function returns whether button presses are captured during kinetic scrolling. The (setf gtk-scrolled-window-capture-button-press) function changes the behaviour of the scrolled window with respect to the initial event that possibly starts kinetic scrolling.

When capture is set to true, the event is captured by the scrolled window, and then later replayed if it is meant to go to the child widget.

This should be enabled if any child widgets perform non-reversible actions on "button-press-event" signals. If they do not, and handle additionally handle "grab-broken-event", it might be better to set the capture argument to the false value.

This setting only has an effect if kinetic scrolling is enabled.
 

See also

2021-10-14