Allow EventListenerRegistered with old signature
authorMike Gorse <mgorse@suse.com>
Mon, 24 Feb 2014 23:09:52 +0000 (17:09 -0600)
committerMike Gorse <mgorse@suse.com>
Mon, 24 Feb 2014 23:09:52 +0000 (17:09 -0600)
Add_event_from_iter checks for the old form anyway, so might as well
allow it. Improves compatibility with at-spi2-registryd <= 3.10.

atk-adaptor/bridge.c

index e7b3bab..aeabb91 100644 (file)
@@ -696,7 +696,8 @@ handle_event_listener_registered (DBusConnection *bus, DBusMessage *message,
   DBusMessageIter iter;
   const char *signature = dbus_message_get_signature (message);
 
-  if (strcmp (signature, "ssas") != 0)
+  if (strcmp (signature, "ssas") != 0 &&
+      strcmp (signature, "ss") != 0)
   {
     g_warning ("got RegisterEvent with invalid signature '%s'", signature);
     return;