summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@hypra.fr>2018-08-08 13:34:18 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-08-14 12:06:41 +0200
commit4917430c1c5e8105987e81d65d31df21955ad60e (patch)
tree83d242a3cb224327e5f984d6e093b47725e21f44 /vcl/unx
parented77565f1487ed93e2557b562c10e0f4e8673c6a (diff)
tdf#116542 a11y: introduce STATIC role
This should be used for brief non-editable text which is not meant to have a relation with another object (as opposed to text or label). Change-Id: I46bfa56042a51295e9fa0d332babdbb40668ff0b Reviewed-on: https://gerrit.libreoffice.org/58734 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index 951c758eeac7..6a78dce933fb 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -284,11 +284,17 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
, ATK_ROLE_DOCUMENT_PRESENTATION
, ATK_ROLE_DOCUMENT_SPREADSHEET
, ATK_ROLE_DOCUMENT_TEXT
+#if ATK_CHECK_VERSION(2,15,2)
+ , ATK_ROLE_STATIC
+#else
+ , ATK_ROLE_LABEL
+#endif
#else
//older version should fallback to DOCUMENT_FRAME role
, ATK_ROLE_DOCUMENT_FRAME
, ATK_ROLE_DOCUMENT_FRAME
, ATK_ROLE_DOCUMENT_FRAME
+ , ATK_ROLE_LABEL
#endif
};