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;
+ wxMenuItem* wxItem = NULL;
+
+ id = wxApp::s_macAboutMenuItemId;
+ appleItem = m_appleMenu->FindItem(id);
+ wxItem = FindItem(id);
+ if ( appleItem != NULL )
+ {
+ if ( wxItem == NULL )
+ appleItem->GetPeer()->Hide();
+ else
+ appleItem->SetItemLabel(wxItem->GetItemLabel());
+ }
+
+ id = wxApp::s_macPreferencesMenuItemId;
+ appleItem = m_appleMenu->FindItem(id);
+ wxItem = FindItem(id);
+ if ( appleItem != NULL )
+ {
+ if ( wxItem == NULL )
+ appleItem->GetPeer()->Hide();
+ else
+ appleItem->SetItemLabel(wxItem->GetItemLabel());
+ }
+
+
#if 0
MenuBarHandle menubar = NULL ;