atspiroot: Implement GetIndexInParent

Just for good measure
This commit is contained in:
Matthias Clasen 2020-10-09 20:25:38 -04:00 committed by Emmanuele Bassi
parent 9f73638d43
commit 762fbf34fc

View File

@ -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 *