From 89c3543b672dbddc65c75c88b6e4554aa6bc2c5a Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sun, 23 Sep 2007 19:40:57 +0000 Subject: [PATCH] Tell wxMac about our special menu items, so they will be placed right on the menu bar. Originally committed to SVN as r1581. --- aegisub/frame_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aegisub/frame_main.cpp b/aegisub/frame_main.cpp index a7fb849b5..40a9b3456 100644 --- a/aegisub/frame_main.cpp +++ b/aegisub/frame_main.cpp @@ -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();