Correct error in D-Bus message matching.
authorMark Doffman <mark.doffman@codethink.co.uk>
Mon, 9 Nov 2009 10:54:06 +0000 (10:54 +0000)
committerMark Doffman <mark.doffman@codethink.co.uk>
Mon, 9 Nov 2009 10:54:06 +0000 (10:54 +0000)
registryd/deviceeventcontroller.c
registryd/registry.c

index 95c049c..9b855ac 100644 (file)
@@ -2792,7 +2792,7 @@ handle_dec_method (DBusConnection *bus, DBusMessage *message, void *user_data)
       iface  == NULL)
       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
-  if (!strcmp (iface, SPI_DBUS_INTERFACE_DEC))
+  if (strcmp (iface, SPI_DBUS_INTERFACE_DEC))
       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
   if      (!strcmp (member, "registerKeystrokeListener"))
index 764e09f..a1e305c 100644 (file)
@@ -244,6 +244,8 @@ signal_filter (DBusConnection *bus, DBusMessage *message, void *user_data)
 
 /*---------------------------------------------------------------------------*/
 
+#define _SPI_DEBUG(format, args...) g_print (format , ## args)
+
 static gchar *app_sig_match_name_owner =
        "type='signal', interface='org.freedesktop.DBus', member='NameOwnerChanged'";
 
@@ -262,7 +264,7 @@ handle_registry_method (DBusConnection *bus, DBusMessage *message, void *user_da
       iface  == NULL)
       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
-  if (!strcmp (iface, SPI_DBUS_INTERFACE_REGISTRY))
+  if (strcmp (iface, SPI_DBUS_INTERFACE_REGISTRY))
       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
   if      (!strcmp (member, "getApplications"))