a11y: Reuse the generated AT-SPI interface name

We already have the name available.
This commit is contained in:
Emmanuele Bassi 2020-11-19 14:24:00 +00:00
parent 28095641c5
commit 2d636fdda0

View File

@ -349,8 +349,9 @@ handle_accessible_method (GDBusConnection *connection,
{
GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("as"));
g_variant_builder_add (&builder, "s", "org.a11y.atspi.Accessible");
g_variant_builder_add (&builder, "s", "org.a11y.atspi.Application");
g_variant_builder_add (&builder, "s", atspi_accessible_interface.name);
g_variant_builder_add (&builder, "s", atspi_application_interface.name);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(as)", &builder));
}
}