From 65c7ff7d05389a10eed1d881ca572082f03932fe Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 15 Jan 2010 15:29:14 +0000 Subject: [PATCH] device-manager: Fix the signals definition Add documentation for the signals, as well as using the correct type for the marshallers. --- clutter/clutter-device-manager.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-device-manager.c b/clutter/clutter-device-manager.c index 42ce823e4..4ce32e2ed 100644 --- a/clutter/clutter-device-manager.c +++ b/clutter/clutter-device-manager.c @@ -69,6 +69,16 @@ G_DEFINE_TYPE (ClutterDeviceManager, clutter_device_manager, G_TYPE_OBJECT); static void clutter_device_manager_class_init (ClutterDeviceManagerClass *klass) { + /** + * ClutterDeviceManager::device-added: + * @manager: the #ClutterDeviceManager that emitted the signal + * @device: the newly added #ClutterInputDevice + * + * The ::device-added signal is emitted each time a device has been + * added to the #ClutterDeviceManager + * + * Since: 1.2 + */ manager_signals[DEVICE_ADDED] = g_signal_new (I_("device-added"), G_TYPE_FROM_CLASS (klass), @@ -77,8 +87,18 @@ clutter_device_manager_class_init (ClutterDeviceManagerClass *klass) NULL, NULL, clutter_marshal_VOID__OBJECT, G_TYPE_NONE, 1, - G_TYPE_POINTER); + CLUTTER_TYPE_INPUT_DEVICE); + /** + * ClutterDeviceManager::device-removed: + * @manager: the #ClutterDeviceManager that emitted the signal + * @device: the removed #ClutterInputDevice + * + * The ::device-removed signal is emitted each time a device has been + * removed from the #ClutterDeviceManager + * + * Since: 1.2 + */ manager_signals[DEVICE_REMOVED] = g_signal_new (I_("device-removed"), G_TYPE_FROM_CLASS (klass), @@ -87,7 +107,7 @@ clutter_device_manager_class_init (ClutterDeviceManagerClass *klass) NULL, NULL, clutter_marshal_VOID__OBJECT, G_TYPE_NONE, 1, - G_TYPE_POINTER); + CLUTTER_TYPE_INPUT_DEVICE); } static void