Tell wxMac about our special menu items, so they will be placed right on the menu bar.

Originally committed to SVN as r1581.
This commit is contained in:
Niels Martin Hansen 2007-09-23 19:40:57 +00:00
parent b0d73ac84c
commit 89c3543b67
1 changed files with 8 additions and 0 deletions

View File

@ -261,6 +261,14 @@ void FrameMain::InitMenu() {
if (menuCreated) {
SetMenuBar(NULL);
}
#ifdef __WXMAC__
// Make sure special menu items are placed correctly on Mac
wxApp::s_macAboutMenuItemId = Menu_Help_About;
wxApp::s_macExitMenuItemId = Menu_File_Exit;
wxApp::s_macPreferencesMenuItemId = Menu_Tools_Options;
wxApp::s_macHelpMenuTitleName = _("&Help");
#endif
// Generate menubar
MenuBar = new wxMenuBar();