diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-19 14:24:00 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-19 15:20:56 +0000 |
commit | 2d636fdda0163bedbc624712549aaa435f548e42 (patch) | |
tree | 855ea20a79b9589c231bfbcdba76dc2e7665c8a5 /gtk/a11y | |
parent | 28095641c5779a042f6508bee99416fe09c9073a (diff) | |
download | gtk+-2d636fdda0163bedbc624712549aaa435f548e42.tar.gz |
a11y: Reuse the generated AT-SPI interface name
We already have the name available.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkatspiroot.c | 5 |
1 files 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)); } } |