summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-04-03 16:20:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-04-30 10:06:23 +0200
commit6fb5b6f0eee3c4170751fdfadb228652c70be9ec (patch)
treecfff733decc0a976606838c61152ff182b58b247
parentf387a0dc51f4b5ffb89a482821c8254284f70601 (diff)
downloadat-spi2-atk-6fb5b6f0eee3c4170751fdfadb228652c70be9ec.tar.gz
Add AccessibleId property
-rw-r--r--atk-adaptor/adaptors/accessible-adaptor.c11
-rw-r--r--meson.build2
2 files changed, 12 insertions, 1 deletions
diff --git a/atk-adaptor/adaptors/accessible-adaptor.c b/atk-adaptor/adaptors/accessible-adaptor.c
index f9a84ee..7fe3473 100644
--- a/atk-adaptor/adaptors/accessible-adaptor.c
+++ b/atk-adaptor/adaptors/accessible-adaptor.c
@@ -528,6 +528,16 @@ impl_GetInterfaces (DBusConnection * bus,
return reply;
}
+static dbus_bool_t
+impl_get_AccessibleId (DBusMessageIter * iter, void *user_data)
+{
+ AtkObject *object = (AtkObject *) user_data;
+
+ g_return_val_if_fail (ATK_IS_OBJECT (user_data), FALSE);
+
+ return droute_return_v_string (iter, atk_object_get_accessible_id (object));
+}
+
static DRouteMethod methods[] = {
{impl_GetChildAtIndex, "GetChildAtIndex"},
{impl_GetChildren, "GetChildren"},
@@ -550,6 +560,7 @@ static DRouteProperty properties[] = {
{impl_get_Parent, NULL, "Parent"},
{impl_get_ChildCount, NULL, "ChildCount"},
{impl_get_Attributes, NULL, "Attributes"},
+ {impl_get_AccessibleId, NULL, "AccessibleId"},
{NULL, NULL, NULL}
};
diff --git a/meson.build b/meson.build
index cd52d1c..8d06717 100644
--- a/meson.build
+++ b/meson.build
@@ -38,7 +38,7 @@ libdbus_req_version = '>= 1.5'
glib_req_version = '>= 2.32.0'
gobject_req_version = '>= 2.0.0'
gmodule_req_version = '>= 2.0.0'
-atk_req_version = '>= 2.31.1'
+atk_req_version = '>= 2.33.1'
atspi_req_version = '>= 2.31.2'
libxml_req_version = '>= 2.9.1'