summaryrefslogtreecommitdiff
path: root/atspi/atspi-misc.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2023-05-03 17:13:02 -0500
committerMike Gorse <mgorse@suse.com>2023-05-03 17:13:02 -0500
commit6e4b76546950d53d1db61ce562952b812fe731e9 (patch)
treec3446ebcfaed54944d199011f8719bb35644f32a /atspi/atspi-misc.h
parentf6d5fe5a442348c9631e0214048d2037834f4779 (diff)
downloadat-spi2-core-6e4b76546950d53d1db61ce562952b812fe731e9.tar.gz
Use internal names when possible for localized role names
This matches the behavior of atspi_accessible_get_role_name. We already hav translations from atk, so we can use those. Also, move the table for role name translations into atspi, since it seems that atk is increasingly becoming a legacy tool. Add a note to the xml indicating that it is optional to implement GetRoleName and GetLocalizedRoleName. Fixes #110
Diffstat (limited to 'atspi/atspi-misc.h')
-rw-r--r--atspi/atspi-misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/atspi/atspi-misc.h b/atspi/atspi-misc.h
index d820d94e..d262aff4 100644
--- a/atspi/atspi-misc.h
+++ b/atspi/atspi-misc.h
@@ -47,6 +47,8 @@ void
atspi_set_main_context (GMainContext *cnx);
gchar *atspi_role_get_name (AtspiRole role);
+
+const gchar *atspi_role_get_localized_name (AtspiRole role);
G_END_DECLS
#endif /* _ATSPI_MISC_H_ */