[Libreoffice-commits] core.git: sfx2/source
Niklas Johansson
sleeping.pillow at gmail.com
Thu May 7 06:58:10 PDT 2015
sfx2/source/sidebar/TabBar.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0fc79344ce5e057f7c2258a0fe16374fe510745f
Author: Niklas Johansson <sleeping.pillow at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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;
More information about the Libreoffice-commits
mailing list