Always send property-change signals, except for transient objects
authorMike Gorse <mgorse@suse.com>
Wed, 26 Oct 2016 14:14:39 +0000 (09:14 -0500)
committerMike Gorse <mgorse@suse.com>
Wed, 26 Oct 2016 14:14:39 +0000 (09:14 -0500)
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

index 3e1e80e..b539646 100644 (file)
@@ -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"))