diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-27 10:34:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-27 14:33:23 +0200 |
commit | 7d0279121f099aa36fcee3f0df207bdbcee75ad4 (patch) | |
tree | 5a92caf52cb323b0a1584fe4d9142b97b8be7089 /accessibility/source | |
parent | 5f2c138bf67b19ba5cfa696afda7087d6879f074 (diff) |
tdf#136162 implement applying atk properties to gen menus
Change-Id: I77dbc21910b01524d281869a83d9d12efd419bf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101446
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'accessibility/source')
-rw-r--r-- | accessibility/source/standard/accessiblemenubasecomponent.cxx | 5 | ||||
-rw-r--r-- | accessibility/source/standard/accessiblemenuitemcomponent.cxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/accessibility/source/standard/accessiblemenubasecomponent.cxx b/accessibility/source/standard/accessiblemenubasecomponent.cxx index 3c5cdd53c71f..4dbb71c554cf 100644 --- a/accessibility/source/standard/accessiblemenubasecomponent.cxx +++ b/accessibility/source/standard/accessiblemenubasecomponent.cxx @@ -579,6 +579,11 @@ void OAccessibleMenuBaseComponent::ProcessMenuEvent( const VclMenuEvent& rVclMen RemoveChild( nItemPos ); } break; + case VclEventId::MenuAccessibleNameChanged: + { + UpdateAccessibleName( nItemPos ); + } + break; case VclEventId::MenuItemTextChanged: { UpdateAccessibleName( nItemPos ); diff --git a/accessibility/source/standard/accessiblemenuitemcomponent.cxx b/accessibility/source/standard/accessiblemenuitemcomponent.cxx index c4e08609fe04..951d913e20c3 100644 --- a/accessibility/source/standard/accessiblemenuitemcomponent.cxx +++ b/accessibility/source/standard/accessiblemenuitemcomponent.cxx @@ -336,7 +336,7 @@ OUString OAccessibleMenuItemComponent::getAccessibleDescription( ) OUString sDescription; if ( m_pParent ) - sDescription = m_pParent->GetHelpText( m_pParent->GetItemId( m_nItemPos ) ); + sDescription = m_pParent->GetAccessibleDescription( m_pParent->GetItemId( m_nItemPos ) ); return sDescription; } |