mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00:00
device/xi2: Remove the ::remove implementation
Removing a device is only internal API, and we already have a function for that: we don't need to implement the DeviceManager virtual as well.
This commit is contained in:
parent
0075c45ca4
commit
9c48486d7a
@ -851,28 +851,14 @@ static void
|
|||||||
clutter_device_manager_xi2_add_device (ClutterDeviceManager *manager,
|
clutter_device_manager_xi2_add_device (ClutterDeviceManager *manager,
|
||||||
ClutterInputDevice *device)
|
ClutterInputDevice *device)
|
||||||
{
|
{
|
||||||
|
/* XXX implement */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_device_manager_xi2_remove_device (ClutterDeviceManager *manager,
|
clutter_device_manager_xi2_remove_device (ClutterDeviceManager *manager,
|
||||||
ClutterInputDevice *device)
|
ClutterInputDevice *device)
|
||||||
{
|
{
|
||||||
ClutterDeviceManagerXI2 *manager_xi2 = CLUTTER_DEVICE_MANAGER_XI2 (manager);
|
/* XXX implement */
|
||||||
gint device_id;
|
|
||||||
|
|
||||||
device_id = clutter_input_device_get_device_id (device);
|
|
||||||
|
|
||||||
manager_xi2->master_devices =
|
|
||||||
g_list_remove (manager_xi2->master_devices, device);
|
|
||||||
manager_xi2->slave_devices =
|
|
||||||
g_list_remove (manager_xi2->slave_devices, device);
|
|
||||||
|
|
||||||
g_signal_emit_by_name (manager_xi2, "device-removed", device);
|
|
||||||
|
|
||||||
g_object_run_dispose (G_OBJECT (device));
|
|
||||||
|
|
||||||
g_hash_table_remove (manager_xi2->devices_by_id,
|
|
||||||
GINT_TO_POINTER (device_id));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const GSList *
|
static const GSList *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user