[gtk/matthiasc/a11y: 8/8] atspiroot: Implement more of the Accessible api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y: 8/8] atspiroot: Implement more of the Accessible api
- Date: Fri, 9 Oct 2020 20:25:43 +0000 (UTC)
commit d8dd339e142d29692a4dbf5ac23fbb98cf7d3f54
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 9 15:59:29 2020 -0400
atspiroot: Implement more of the Accessible api
Implement GetIndexInParent, GetAttributes and GetRelationSet.
All of these return nothing for the root object.
gtk/a11y/gtkatspiroot.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index 60c674d89a..6ee6cb1325 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -239,6 +239,12 @@ handle_accessible_method (GDBusConnection *connection,
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
else if (g_strcmp0 (method_name, "GetLocalizedRoleName") == 0)
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
+ else if (g_strcmp0 (method_name, "GetIndexInParent") == 0)
+ g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", -1));
+ else if (g_strcmp0 (method_name, "GetAttributes") == 0)
+ g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a{ss})", NULL));
+ else if (g_strcmp0 (method_name, "GetRelationSet") == 0)
+ g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(ua(so)))", NULL));
}
static GVariant *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]