diff options
-rw-r--r-- | vcl/inc/salmenu.hxx | 2 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/vcl/inc/salmenu.hxx b/vcl/inc/salmenu.hxx index 5bea40140bba..77b1cd7986ef 100644 --- a/vcl/inc/salmenu.hxx +++ b/vcl/inc/salmenu.hxx @@ -82,7 +82,7 @@ public: virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure virtual void RemoveMenuBarButton( sal_uInt16 nId ); - // FIXME: Make the other VCL native backends to work with these new methods. + // TODO: implement show/hide for the Win/Mac VCL native backends virtual void ShowItem( unsigned nPos, sal_Bool bShow ) { EnableItem( nPos, bShow ); } // return an empty rectangle if not implemented diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 7fbc21a6f48c..b6606b365999 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1797,10 +1797,7 @@ void Menu::ShowItem( sal_uInt16 nItemId, sal_Bool bVisible ) pData->bVisible = bVisible; // update native menu - // as long as there is no support to hide native menu entries, we just disable them - // TODO: add support to show/hide native menu entries if( ImplGetSalMenu() ) -// ImplGetSalMenu()->EnableItem( nPos, bVisible ); ImplGetSalMenu()->ShowItem( nPos, bVisible ); } } |