[gtk/matthiasc/a11y: 34/36] atspiroot: Stub out GetRelationSet




commit 9e5709a33da4e79ffa015ec1d30a333a3111a5c0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Oct 10 10:43:07 2020 -0400

    atspiroot: Stub out GetRelationSet
    
    This needs to be fully implemented, for now sending
    an empty relation set back prevents accerciser from
    getting hung up.

 gtk/a11y/gtkatspiroot.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index 5e74bf6d46..3e938d3fa1 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -331,6 +331,11 @@ handle_accessible_method (GDBusConnection       *connection,
     {
       g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", -1));
     }
+  else if (g_strcmp0 (method_name, "GetRelationSet") == 0)
+    {
+      GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("a(ua(so))"));
+      g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(ua(so)))", &builder));
+    }
   else if (g_strcmp0 (method_name, "GetInterfaces") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("as"));


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