Widget.setDeviceEnabled

Enables or disables a GdkDevice to interact with widget and all its children. It does so by descending through the GdkWindow hierarchy and enabling the same mask that is has for core events (i.e. the one that gdk_window_get_events() returns).

class Widget
void
setDeviceEnabled

Parameters

device Device

a GdkDevice

enabled int

whether to enable the device Since 3.0

Meta