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:
parent
b0d73ac84c
commit
89c3543b67
1 changed files with 8 additions and 0 deletions
|
@ -262,6 +262,14 @@ void FrameMain::InitMenu() {
|
|||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue