[at-spi2-atk] Always send property-change signals, except for transient objects



commit 96621a5e950c041e718923f58540c969164340c4
Author: Mike Gorse <mgorse suse com>
Date:   Wed Oct 26 09:14:39 2016 -0500

    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 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"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]