[gtk+] gdk: Drop devicemanager signals
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Drop devicemanager signals
- Date: Sat, 25 Nov 2017 16:24:44 +0000 (UTC)
commit 30a037c4fe64602577333d6e6af12f58803a7d7f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 24 20:51:19 2017 -0500
gdk: Drop devicemanager signals
Nobody is emitting them anymore.
gdk/gdkdevicemanager.c | 74 -----------------------------------------
gdk/gdkdevicemanagerprivate.h | 8 ----
2 files changed, 0 insertions(+), 82 deletions(-)
---
diff --git a/gdk/gdkdevicemanager.c b/gdk/gdkdevicemanager.c
index 22430f6..0e30df1 100644
--- a/gdk/gdkdevicemanager.c
+++ b/gdk/gdkdevicemanager.c
@@ -161,16 +161,6 @@ enum {
PROP_DISPLAY
};
-enum {
- DEVICE_ADDED,
- DEVICE_REMOVED,
- DEVICE_CHANGED,
- LAST_SIGNAL
-};
-
-static guint signals [LAST_SIGNAL] = { 0 };
-
-
static void
gdk_device_manager_class_init (GdkDeviceManagerClass *klass)
{
@@ -187,70 +177,6 @@ gdk_device_manager_class_init (GdkDeviceManagerClass *klass)
GDK_TYPE_DISPLAY,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
-
- /**
- * GdkDeviceManager::device-added:
- * @device_manager: the object on which the signal is emitted
- * @device: the newly added #GdkDevice.
- *
- * The ::device-added signal is emitted either when a new master
- * pointer is created, or when a slave (Hardware) input device
- * is plugged in.
- */
- signals [DEVICE_ADDED] =
- g_signal_new (g_intern_static_string ("device-added"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GdkDeviceManagerClass, device_added),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
- G_TYPE_NONE, 1,
- GDK_TYPE_DEVICE);
-
- /**
- * GdkDeviceManager::device-removed:
- * @device_manager: the object on which the signal is emitted
- * @device: the just removed #GdkDevice.
- *
- * The ::device-removed signal is emitted either when a master
- * pointer is removed, or when a slave (Hardware) input device
- * is unplugged.
- */
- signals [DEVICE_REMOVED] =
- g_signal_new (g_intern_static_string ("device-removed"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GdkDeviceManagerClass, device_removed),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
- G_TYPE_NONE, 1,
- GDK_TYPE_DEVICE);
-
- /**
- * GdkDeviceManager::device-changed:
- * @device_manager: the object on which the signal is emitted
- * @device: the #GdkDevice that changed.
- *
- * 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.
- */
- signals [DEVICE_CHANGED] =
- g_signal_new (g_intern_static_string ("device-changed"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GdkDeviceManagerClass, device_changed),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
- G_TYPE_NONE, 1,
- GDK_TYPE_DEVICE);
}
static void
diff --git a/gdk/gdkdevicemanagerprivate.h b/gdk/gdkdevicemanagerprivate.h
index c18d2cd..61ef9c4 100644
--- a/gdk/gdkdevicemanagerprivate.h
+++ b/gdk/gdkdevicemanagerprivate.h
@@ -42,14 +42,6 @@ struct _GdkDeviceManagerClass
{
GObjectClass parent_class;
- /* Signals */
- void (* device_added) (GdkDeviceManager *device_manager,
- GdkDevice *device);
- void (* device_removed) (GdkDeviceManager *device_manager,
- GdkDevice *device);
- void (* device_changed) (GdkDeviceManager *device_manager,
- GdkDevice *device);
-
/* VMethods */
GList * (* list_devices) (GdkDeviceManager *device_manager,
GdkDeviceType type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]