[gtk/a11y/atspi: 24/28] atspiroot: Implement GetIndexInParent




commit 762fbf34fcde958f4b2373d2167db15cc736c1f6
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 9 20:25:38 2020 -0400

    atspiroot: Implement GetIndexInParent
    
    Just for good measure

 gtk/a11y/gtkatspiroot.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index 98ba152267..4027f1d9f1 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -251,7 +251,7 @@ handle_accessible_method (GDBusConnection       *connection,
       g_variant_builder_close (&builder);
 
       g_dbus_method_invocation_return_value (invocation, g_variant_builder_end (&builder));
-    }
+     }
   else if (g_strcmp0 (method_name, "GetAttributes") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(a{ss})"));
@@ -325,6 +325,10 @@ handle_accessible_method (GDBusConnection       *connection,
 
       g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(so))", &builder));
     }
+  else if (g_strcmp0 (method_name, "GetIndexInParent") == 0)
+    {
+      g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", -1));
+    }
 }
 
 static GVariant *


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