[gtk/a11y/atspi: 19/30] a11y: Localise the role name of the root node




commit 5a733854b6c8af12c2563e4f463c4d1e34d44e00
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Oct 10 12:55:54 2020 +0100

    a11y: Localise the role name of the root node

 gtk/a11y/gtkatspiroot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index e1a76b1e95..998ef95134 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -33,6 +33,7 @@
 
 #include <locale.h>
 
+#include <glib/gi18n-lib.h>
 #include <gio/gio.h>
 
 #define ATSPI_VERSION           "2.1"
@@ -219,7 +220,7 @@ handle_accessible_method (GDBusConnection       *connection,
   else if (g_strcmp0 (method_name, "GetRoleName") == 0)
     g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
   else if (g_strcmp0 (method_name, "GetLocalizedRoleName") == 0)
-    g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "application"));
+    g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", C_("accessibility", 
"application")));
   else if (g_strcmp0 (method_name, "GetState") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(au)"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]