summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-17 16:57:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-17 17:04:25 +0000
commit685ec1899435037205d98a102a32ca8b6a4836d0 (patch)
tree372e4d704fba658e259a0bf6f4f8c0a4bfcf7a81
parenta19440bee79f9458b3ddc072a02d848c77c52264 (diff)
Related: fdo#74284 try AccessibleRole::PANEL for VclBoxes under windows
Change-Id: Ic8c743c2646c8610b3d90425024413b40dfdab13
-rw-r--r--vcl/source/window/layout.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 4cfdc80ace0c..344e4b5b920c 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -322,7 +322,13 @@ bool VclBox::set_property(const OString &rKey, const OString &rValue)
sal_uInt16 VclBox::getDefaultAccessibleRole() const
{
+#if defined(WNT)
+ //fdo#74284 call Boxes Panels, keep then as "Filler" under
+ //at least Linux seeing as that's what Gtk does for GtkBoxes
+ return com::sun::star::accessibility::AccessibleRole::PANEL;
+#else
return com::sun::star::accessibility::AccessibleRole::FILLER;
+#endif
}
#define DEFAULT_CHILD_MIN_WIDTH 85