[gtk/matthiasc/a11y] atspiroot: Implement GetIndexInParent



commit c49f8a2234c4c5acb6ec126f1fd55a47bdb9a15b
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 266e5d4d69..a4445e6233 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -250,7 +250,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})"));
@@ -324,6 +324,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]