[at-spi2-core] Update the cache before raising an event to a listener, not after
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Update the cache before raising an event to a listener, not after
- Date: Fri, 7 Jan 2011 19:53:12 +0000 (UTC)
commit b721dc16ffb99047198744502bd3b59c5ad27e54
Author: Mike Gorse <mgorse novell com>
Date: Fri Jan 7 12:58:27 2011 -0600
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.
atspi/atspi-event-listener.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]