diff options
author | Antonio Fernandez <antonio.fernandez@aentos.es> | 2012-08-08 16:18:14 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:52:40 +0100 |
commit | 36c1c2c2754dda6e8d2b2802e3881465adaafbec (patch) | |
tree | 2ca7be5a645ce06fac0b5b09c1258b3906f6f8a2 /vcl/source | |
parent | ba8ab7935c9d12b3f5ce1df64fafc2e4f68c4510 (diff) |
Added GLOMenu and GLOActionGroup. Menu is published with actions (not working)
Change-Id: I3400980e4605fbf78755532c696e021d3466675b
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/window/menu.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index bd9ca95b3c96..e713b1696c3e 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1947,10 +1947,15 @@ sal_Bool Menu::GetItemImageMirrorMode( sal_uInt16 nItemId ) const void Menu::SetItemCommand( sal_uInt16 nItemId, const String& rCommand ) { - MenuItemData* pData = pItemList->GetData( nItemId ); + size_t nPos; + MenuItemData* pData = pItemList->GetData( nItemId, nPos ); if ( pData ) pData->aCommandStr = rCommand; + + // update native menu + if( ImplGetSalMenu() && pData->pSalMenuItem ) + ImplGetSalMenu()->SetItemCommand( nPos, pData->pSalMenuItem, rCommand ); } const XubString& Menu::GetItemCommand( sal_uInt16 nItemId ) const |