Method

GtkWidgetset_device_enabled

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 GdkDevice
 

A GdkDevice.

 The data is owned by the caller of the function.
enabled gboolean
 

Whether to enable the device.