From 762fbf34fcde958f4b2373d2167db15cc736c1f6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 9 Oct 2020 20:25:38 -0400 Subject: [PATCH] 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 *