git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-03 10:20:01 +00:00
parent f67a33e3ad
commit cc5fe8d459

View File

@@ -596,6 +596,22 @@ void wxMenuBar::MacInstallMenuBar()
m_rootMenu->GetPeer()->MakeRoot();
// hide items in the apple menu that don't exist in the wx menubar
int id = 0;
wxMenuItem* appleItem = NULL;
id = wxApp::s_macAboutMenuItemId;
appleItem = m_appleMenu->FindItem(id);
if ( appleItem != NULL )
appleItem->GetPeer()->Hide(FindItem(id) == NULL );
id = wxApp::s_macPreferencesMenuItemId;
appleItem = m_appleMenu->FindItem(id);
if ( appleItem != NULL )
appleItem->GetPeer()->Hide(FindItem(id) == NULL );
#if 0
MenuBarHandle menubar = NULL ;