[Libreoffice-commits] core.git: vcl/source

Niklas Johansson sleeping.pillow at gmail.com
Wed Feb 10 06:33:48 UTC 2016


 vcl/source/window/accessibility.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 5384c6a53a8f2201d373e8c63c42d39d10ad0aa6
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Wed Feb 3 22:36:08 2016 +0100

    Don't fall back to Tool Bar as accessible name for toolbars
    
    There is really no need to force an accessible name on the toolbar
    The fact that it is a toolbar is already given by the accessible
    role TOOL_BAR. By giving it the name Tool Bar will make some
    screen readers read Toolbar toolbar and then whatever control
    is in focus.
    
    Change-Id: Ie033f7f98ece2481b8e4b1ce72f4254a3cfd7303
    Reviewed-on: https://gerrit.libreoffice.org/22088
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/source/window/accessibility.cxx b/vcl/source/window/accessibility.cxx
index f31a6f9..e3aa32a 100644
--- a/vcl/source/window/accessibility.cxx
+++ b/vcl/source/window/accessibility.cxx
@@ -544,8 +544,6 @@ OUString Window::getDefaultAccessibleName() const
 
         case WINDOW_TOOLBOX:
             aAccessibleName = GetText();
-            if( aAccessibleName.isEmpty() )
-                aAccessibleName = "Tool Bar";
             break;
 
         case WINDOW_MOREBUTTON:


More information about the Libreoffice-commits mailing list