[at-spi2-core] Fix updating cache from events
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Fix updating cache from events
- Date: Mon, 6 Dec 2010 09:35:57 +0000 (UTC)
commit 053dd8905b98edce733e9c69d8ab85ef11b6a16f
Author: Mike Gorse <mgorse novell com>
Date: Mon Dec 6 04:38:17 2010 -0500
Fix updating cache from events
atspi/atspi-event-listener.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 38d1352..7fa68cf 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -241,7 +241,9 @@ cache_process_property_change (AtspiEvent *event)
static void
cache_process_state_changed (AtspiEvent *event)
{
- atspi_state_set_set_by_name (event->source->states, event->type + 21, event->detail1);
+ if (event->source->states)
+ atspi_state_set_set_by_name (event->source->states, event->type + 21,
+ event->detail1);
}
static dbus_bool_t
@@ -826,15 +828,15 @@ atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data)
}
_atspi_send_event (&e);
- if (!strcmp (e.type, "children-changed"))
+ if (!strncmp (e.type, "object:children-changed", 23))
{
cache_process_children_changed (&e);
}
- else if (!strcmp (e.type, "property-change"))
+ else if (!strncmp (e.type, "object:property-change", 22))
{
cache_process_property_change (&e);
}
- else if (!strcmp (e.type, "state-changed"))
+ else if (!strncmp (e.type, "object:state-changed", 20))
{
cache_process_state_changed (&e);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]