Signal

GdkDeviceManager::device-changed

Declaration

void
device_changed (
  GdkDeviceManager* self,
  GdkDevice* device,
  gpointer user_data
)

Description [src]

The ::device-changed signal is emitted whenever a device has changed in the hierarchy, either slave devices being disconnected from their master device or connected to another one, or master devices being added or removed a slave device.

If a slave device is detached from all master devices (gdk_device_get_associated_device() returns NULL), its GdkDeviceType will change to GDK_DEVICE_TYPE_FLOATING, if it’s attached, it will change to GDK_DEVICE_TYPE_SLAVE.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Parameters

device

Type: GdkDevice

The GdkDevice that changed.

The data is owned by the caller of the function.