From 96621a5e950c041e718923f58540c969164340c4 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Wed, 26 Oct 2016 09:14:39 -0500 Subject: [PATCH] Always send property-change signals, except for transient objects At-spi2-core generally caches properties, so it needs notification when these properties change. signal_is_needed() was intended to account for this but failed to do so because of n incorrect strcmp. --- atk-adaptor/event.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c index 3e1e80e..b539646 100644 --- a/atk-adaptor/event.c +++ b/atk-adaptor/event.c @@ -398,10 +398,10 @@ signal_is_needed (AtkObject *obj, const gchar *klass, const gchar *major, * this instead, so that we don't send these if no one is listening */ if (!g_strcmp0 (data [1], "ChildrenChanged") || ((!g_strcmp0 (data [1], "PropertyChange")) && - (!g_strcmp0 (data [2], "accessible-name") || - !g_strcmp0 (data [2], "accessible-description") || - !g_strcmp0 (data [2], "accessible-parent") || - !g_strcmp0 (data [2], "accessible-role"))) || + (!g_strcmp0 (data [2], "AccessibleName") || + !g_strcmp0 (data [2], "AccessibleDescription") || + !g_strcmp0 (data [2], "AccessibleParent") || + !g_strcmp0 (data [2], "AccessibleRole"))) || !g_strcmp0 (data [1], "StateChanged")) { if (minor && !g_strcmp0 (minor, "defunct")) -- 2.34.1