fixes #10978
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -595,7 +595,23 @@ void wxMenuBar::MacInstallMenuBar()
|
||||
return ;
|
||||
|
||||
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 ;
|
||||
|
Reference in New Issue
Block a user