summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2016-10-26 09:14:39 -0500
committerMike Gorse <mgorse@suse.com>2016-10-26 09:14:39 -0500
commit96621a5e950c041e718923f58540c969164340c4 (patch)
treed0a9b8b94ddb0ebb7b1b8a87496537c8b5920df3
parent372999fb152c847ed4fd8b0a2cb3ceb91040c1ec (diff)
downloadat-spi2-atk-96621a5e950c041e718923f58540c969164340c4.tar.gz
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.
-rw-r--r--atk-adaptor/event.c8
1 files 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"))