From 2d636fdda0163bedbc624712549aaa435f548e42 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 19 Nov 2020 14:24:00 +0000 Subject: a11y: Reuse the generated AT-SPI interface name We already have the name available. --- gtk/a11y/gtkatspiroot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c index 31afbe2316..ca7730a018 100644 --- a/gtk/a11y/gtkatspiroot.c +++ b/gtk/a11y/gtkatspiroot.c @@ -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)); } } -- cgit v1.2.1