[at-spi2-core] Fix a failure to respond to children-changed events in some cases



commit 0ac800abfa8a2fc0bc7834f138a016a1e96c1644
Author: Mike Gorse <mgorse novell com>
Date:   Tue Jun 28 15:00:41 2011 -0500

    Fix a failure to respond to children-changed events in some cases
    
    When a children-changed event is received, the cache of children should
    be updated if present.  However, to test this, the code was checking for
    the presence of a non-NULL list of children, which would be the case if
    the object initially had 0 children.  The correct thing to do is to
    check the accessible's cached_properties.

 atspi/atspi-event-listener.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index b81e5b6..e93ec6b 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -168,7 +168,7 @@ cache_process_children_changed (AtspiEvent *event)
   AtspiAccessible *child;
 
   if (!G_VALUE_HOLDS (&event->any_data, ATSPI_TYPE_ACCESSIBLE) ||
-      !event->source->children ||
+      !(event->source->cached_properties & ATSPI_CACHE_CHILDREN) ||
       atspi_state_set_contains (event->source->states, ATSPI_STATE_MANAGES_DESCENDANTS))
     return;
 



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