fixes #10978
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -596,6 +596,22 @@ void wxMenuBar::MacInstallMenuBar()
|
|||||||
|
|
||||||
m_rootMenu->GetPeer()->MakeRoot();
|
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
|
#if 0
|
||||||
|
|
||||||
MenuBarHandle menubar = NULL ;
|
MenuBarHandle menubar = NULL ;
|
||||||
|
Reference in New Issue
Block a user