[gtk/a11y/atspi: 32/43] a11y: Localise the role name of the root node




commit 9e3947580d9e0fc523bf06308b092b5549bbac8d
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]