[at-spi2-atk] Allow EventListenerRegistered with old signature
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Allow EventListenerRegistered with old signature
- Date: Mon, 24 Feb 2014 23:09:47 +0000 (UTC)
commit 8293cda1c6d8b6bc51c2c8db85ff1f5f38bbc1d0
Author: Mike Gorse <mgorse suse com>
Date: Mon Feb 24 17:09:52 2014 -0600
Allow EventListenerRegistered with old signature
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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index e7b3bab..aeabb91 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]