summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJacobo Aragunde PĂ©rez <jaragunde@igalia.com>2014-02-04 19:30:53 +0100
committerAndras Timar <andras.timar@collabora.com>2014-06-20 03:36:10 -0700
commit3d7a2e3e5b673600f9f68c2e2dd0d040f4333e93 (patch)
tree8b97e91a133c73eac761c3ca933a885d00537873 /vcl
parent00a24a0f67549d7a9bb7ff98f6cb7777fb8d91bf (diff)
fdo#39944: fallback for DOCUMENT_* roles in ATK < 2.1.0
Set fallback to DOCUMENT_FRAME role. Change-Id: Ib83cd2f9881bcdec7b69a7660cf4166a612aaf60
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk/a11y/atkwrapper.cxx b/vcl/unx/gtk/a11y/atkwrapper.cxx
index 7da3cbc4080f..ab0b2753fd4e 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.cxx
@@ -276,6 +276,11 @@ static AtkRole mapToAtkRole( sal_Int16 nRole )
, ATK_ROLE_DOCUMENT_PRESENTATION
, ATK_ROLE_DOCUMENT_SPREADSHEET
, ATK_ROLE_DOCUMENT_TEXT
+#else
+ //older version should fallback to DOCUMENT_FRAME role
+ , ATK_ROLE_DOCUMENT_FRAME
+ , ATK_ROLE_DOCUMENT_FRAME
+ , ATK_ROLE_DOCUMENT_FRAME
#endif
};