[gtk/matthiasc/a11y] atspiroot: Implement more of the Accessible api



commit c4e6d37482f825d8d3822c1f22738f547376c07b
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]