[at-spi2-atk: 1/2] Add AccessibleId property



commit 6fb5b6f0eee3c4170751fdfadb228652c70be9ec
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Wed Apr 3 16:20:38 2019 +0200

    Add AccessibleId property

 atk-adaptor/adaptors/accessible-adaptor.c | 11 +++++++++++
 meson.build                               |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
---
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'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]