dundee: Watch for signals only on DUNDEE_SERVICE
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 28 Jun 2012 14:20:52 +0000 (11:20 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 30 Jun 2012 08:36:49 +0000 (10:36 +0200)
plugins/dundee.c

index 045f639..d0ecdef 100644 (file)
@@ -789,18 +789,18 @@ static int dundee_init(void)
        watch = g_dbus_add_service_watch(connection, DUNDEE_SERVICE,
                        dundee_connect, dundee_disconnect, NULL, NULL);
 
-       added_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
+       added_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE, NULL,
                                                DUNDEE_MANAGER_INTERFACE,
                                                DEVICE_ADDED, device_added,
                                                NULL, NULL);
 
-       removed_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
-                                               DUNDEE_MANAGER_INTERFACE,
+       removed_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE,
+                                               NULL, DUNDEE_MANAGER_INTERFACE,
                                                DEVICE_REMOVED, device_removed,
                                                NULL, NULL);
 
-       device_watch = g_dbus_add_signal_watch(connection, NULL, NULL,
-                                               DUNDEE_DEVICE_INTERFACE,
+       device_watch = g_dbus_add_signal_watch(connection, DUNDEE_SERVICE,
+                                               NULL, DUNDEE_DEVICE_INTERFACE,
                                                PROPERTY_CHANGED,
                                                device_changed,
                                                NULL, NULL);