[at-spi2-atk] PropertyChange fixes
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] PropertyChange fixes
- Date: Tue, 2 Feb 2010 20:29:03 +0000 (UTC)
commit b4e7556caa3b65e635246adfd8d67cfd922f19ba
Author: Mike Gorse <mgorse novell com>
Date: Mon Feb 1 14:52:25 2010 -0500
PropertyChange fixes
atk-adaptor/bridge.c | 1 +
atk-adaptor/event.c | 14 ++++++++++----
2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index e29314c..574dc09 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -148,6 +148,7 @@ spi_atk_bridge_get_bus (void)
}
else
{
+g_print("dbg: data=%s\n", data);
bus = dbus_connection_open (data, &error);
if (!bus)
{
diff --git a/atk-adaptor/event.c b/atk-adaptor/event.c
index 0a523af..9930d2c 100644
--- a/atk-adaptor/event.c
+++ b/atk-adaptor/event.c
@@ -351,7 +351,7 @@ focus_tracker (AtkObject * accessible)
/*---------------------------------------------------------------------------*/
-#define PCHANGE "property_change"
+#define PCHANGE "PropertyChange"
/*
* This handler handles the following ATK signals and
@@ -390,21 +390,27 @@ property_event_listener (GSignalInvocationHint * signal_hint,
emit_event (accessible, ITF_EVENT_OBJECT, PCHANGE, pname, 0, 0,
DBUS_TYPE_STRING_AS_STRING, s1, append_basic);
}
- if (strcmp (pname, "accessible-description") == 0)
+ else if (strcmp (pname, "accessible-description") == 0)
{
s1 = atk_object_get_description (accessible);
if (s1 != NULL)
emit_event (accessible, ITF_EVENT_OBJECT, PCHANGE, pname, 0, 0,
DBUS_TYPE_STRING_AS_STRING, s1, append_basic);
}
- if (strcmp (pname, "accessible-parent") == 0)
+ else if (strcmp (pname, "accessible-parent") == 0)
{
otemp = atk_object_get_parent (accessible);
if (otemp != NULL)
emit_event (accessible, ITF_EVENT_OBJECT, PCHANGE, pname, 0, 0,
"(so)", otemp, append_object);
}
- if (strcmp (pname, "accessible-table-summary") == 0)
+ else if (strcmp (pname, "accessible-role") == 0)
+ {
+ dbus_uint32_t role = atk_object_get_role (accessible);
+ emit_event (accessible, ITF_EVENT_OBJECT, PCHANGE, pname, 0, 0,
+ DBUS_TYPE_UINT32_AS_STRING, role, append_basic);
+ }
+ else if (strcmp (pname, "accessible-table-summary") == 0)
{
otemp = atk_table_get_summary (ATK_TABLE (accessible));
if (otemp != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]