Don't return DBUS_HANDLER_RESULT_HANDLED for NameOwnerChanged signals
authorMike Gorse <mgorse@suse.com>
Tue, 20 Nov 2012 21:18:12 +0000 (15:18 -0600)
committerMike Gorse <mgorse@suse.com>
Tue, 20 Nov 2012 21:18:12 +0000 (15:18 -0600)
NameOwnerChanged signals are generic signals sent out by dbus-daemon,
not really specific to this code, so the filter should return
DBUS_HANDLER_RESULT_NOT_YET_HANDLED for them so that libdbus will
propagate them to other filters (specifically the one in at-spi2-core,
which shares a D-Bus connection with at-spi2-atk).

atk-adaptor/bridge.c

index c1de369..7dd355b 100644 (file)
@@ -680,7 +680,6 @@ signal_filter (DBusConnection *bus, DBusMessage *message, void *user_data)
       !g_strcmp0(member, "NameOwnerChanged"))
     {
       char *name, *old, *new;
       !g_strcmp0(member, "NameOwnerChanged"))
     {
       char *name, *old, *new;
-      result = DBUS_HANDLER_RESULT_HANDLED;
       if (dbus_message_get_args (message, NULL,
                                  DBUS_TYPE_STRING, &name,
                                  DBUS_TYPE_STRING, &old,
       if (dbus_message_get_args (message, NULL,
                                  DBUS_TYPE_STRING, &name,
                                  DBUS_TYPE_STRING, &old,