X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8caf72d33efedf5252ffeb5177441b10f3a72141..5541d1fda4b73af86e42b2f43724f0c063a352d0:/src/mac/carbon/menu.cpp?ds=inline diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index e53992df98..1159391d37 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -613,13 +613,16 @@ void wxMenuBar::RebuildAccelTable() } #endif // wxUSE_ACCEL - - +#ifdef WXMAKINGDLL +extern short gCurrentResource ; +#endif void wxMenuBar::MacInstallMenuBar() { if ( s_macInstalledMenuBar == this ) return ; + wxStAppResource resload ; + Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ; wxString message ; wxCHECK_RET( menubar != NULL, "can't read MBAR resource" ); @@ -632,7 +635,10 @@ void wxMenuBar::MacInstallMenuBar() MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ; #if TARGET_API_MAC_OS8 - ::AppendResMenu(menu, 'DRVR'); + if ( CountMenuItems( menu ) == 2 ) + { + ::AppendResMenu(menu, 'DRVR'); + } #endif for (int i = 0; i < m_menus.GetCount(); i++) @@ -733,7 +739,6 @@ void wxMenuBar::MacInstallMenuBar() } } ::DrawMenuBar() ; - s_macInstalledMenuBar = this; }