From: Mike Gorse Date: Fri, 7 Jan 2011 18:58:27 +0000 (-0600) Subject: Update the cache before raising an event to a listener, not after X-Git-Tag: AT_SPI2_CORE_1_91_5~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b721dc16ffb99047198744502bd3b59c5ad27e54;p=platform%2Fupstream%2Fat-spi2-core.git Update the cache before raising an event to a listener, not after When a children-changed, property-change, or state-changed event is fired, update the cache before calling callbacks rather than after. This ensures that queries will return the correct information. --- diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c index 9156b3b..0106c79 100644 --- a/atspi/atspi-event-listener.c +++ b/atspi/atspi-event-listener.c @@ -846,7 +846,6 @@ atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data) default: break; } - _atspi_send_event (&e); if (!strncmp (e.type, "object:children-changed", 23)) { @@ -861,6 +860,8 @@ atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data) cache_process_state_changed (&e); } + _atspi_send_event (&e); + g_free (converted_type); g_free (name); g_free (detail);