[at-spi2-core] Correct error in D-Bus message matching.



commit b7de5dcefedbf645f71f8bc9c21a07fb36f6353b
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Mon Nov 9 10:54:06 2009 +0000

    Correct error in D-Bus message matching.

 registryd/deviceeventcontroller.c |    2 +-
 registryd/registry.c              |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/registryd/deviceeventcontroller.c b/registryd/deviceeventcontroller.c
index 95c049c..9b855ac 100644
--- a/registryd/deviceeventcontroller.c
+++ b/registryd/deviceeventcontroller.c
@@ -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"))
diff --git a/registryd/registry.c b/registryd/registry.c
index 764e09f..a1e305c 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -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"))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]