X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd05f81195970bf616de0a053cb358fdffd7d34a..30e0b1c9720fcef5fb2fa0969ef4cc12a168cf97:/src/mac/carbon/menu.cpp diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index c99c5c89ff..b58d8e5d83 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -504,10 +504,17 @@ void wxMenuBar::MacInstallMenuBar() wxStAppResource resload ; - MenuBarHandle menubar = NewHandleClear( sizeof( MenuBarHeader ) ) ; + MenuBarHandle menubar = NewHandleClear( 6 /* sizeof( MenuBarHeader ) */ ) ; ::SetMenuBar( menubar ) ; DisposeMenuBar( menubar ) ; - + MenuHandle appleMenu = NULL ; + char appleMenuTitle[3] = { 01 , kMenuAppleLogoFilledGlyph , 0 } ; + + verify_noerr( CreateNewMenu( kwxMacAppleMenuId , 0 , &appleMenu ) ) ; + verify_noerr( SetMenuTitle( appleMenu , (ConstStr255Param) appleMenuTitle ) ); + MacInsertMenuItem( appleMenu , "\pAbout..." , 0 ) ; + MacInsertMenu( appleMenu , 0 ) ; + // clean-up the help menu before adding new items MenuHandle mh = NULL ; if ( UMAGetHelpMenu( &mh , &firstUserHelpMenuItem) == noErr )