sfx2/source/sidebar/TabBar.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0fc79344ce5e057f7c2258a0fe16374fe510745f
Author: Niklas Johansson <sleeping.pil...@gmail.com>
Date:   Tue May 5 22:28:04 2015 +0200

    tdf#90994 Sidebar tab bar buttons should should have accessible names
    
    The tab bar buttons (Properties, Styles and formatting, Gallery ...)
    should expose their name to accessibility tools.
    
    Change-Id: I5292ca848688cf93a046c3f5d8906ac35cee1cfe
    Reviewed-on: https://gerrit.libreoffice.org/15639
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 8a474c7..d40d3cb 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -262,6 +262,8 @@ bool TabBar::Notify (NotifyEvent&)
 VclPtr<RadioButton> TabBar::CreateTabItem (const DeckDescriptor& 
rDeckDescriptor)
 {
     VclPtr<RadioButton> pItem = ControlFactory::CreateTabItem(this);
+    pItem->SetAccessibleName(rDeckDescriptor.msTitle);
+    pItem->SetAccessibleDescription(rDeckDescriptor.msHelpText);
     pItem->SetHelpText(rDeckDescriptor.msHelpText);
     pItem->SetQuickHelpText(rDeckDescriptor.msHelpText);
     return pItem;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to