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.
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;