set_capture_button_press


Description:

[ Version ( since = "3.4" ) ]
public void set_capture_button_press (bool capture_button_press)

Changes the behaviour of this with regard to the initial event that possibly starts kinetic scrolling.

When capture_button_press 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. If they don't, and handle additionally handle grab_broken_event, it might be better to set capture_button_press to false.

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

Parameters:

this

a ScrolledWindow

capture_button_press

true to capture button presses