Method

GtkWidgetset_device_enabled

since: 3.0

Declaration [src]

void
gtk_widget_set_device_enabled (
  GtkWidget* widget,
  GdkDevice* device,
  gboolean enabled
)

Description [src]

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).

Available since: 3.0

Parameters

device

Type: GdkDevice

A GdkDevice.

The data is owned by the caller of the method.
enabled

Type: gboolean

Whether to enable the device.