X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90b959aee428b26304ee0056864af48775051496..dbcbe229628c7667da2b6257198467d4f09ab28d:/src/mac/menu.cpp diff --git a/src/mac/menu.cpp b/src/mac/menu.cpp index 3e6277ac5b..6956a0987a 100644 --- a/src/mac/menu.cpp +++ b/src/mac/menu.cpp @@ -56,7 +56,7 @@ const short kwxMacAppleMenuId = 1 ; // Construct a menu with optional title (then use append) -#ifdef __UNIX__ +#ifdef __DARWIN__ short wxMenu::s_macNextMenuId = 3 ; #else short wxMenu::s_macNextMenuId = 2 ; @@ -140,7 +140,7 @@ void wxMenu::UpdateAccel(wxMenuItem *item) if ( accel ) m_accels[n] = accel; else - m_accels.Remove(n); + m_accels.RemoveAt(n); } if ( IsAttached() ) @@ -269,7 +269,7 @@ wxMenuItem *wxMenu::DoRemove(wxMenuItem *item) { delete m_accels[n]; - m_accels.Remove(n); + m_accels.RemoveAt(n); } //else: this item doesn't have an accel, nothing to do #endif // wxUSE_ACCEL @@ -450,7 +450,7 @@ bool wxMenu::MacMenuSelect( wxEvtHandler* handler, long when , int macMenuId, in return true ; } } -#ifndef __WXMAC_X__ +#ifndef __DARWIN__ else if ( macMenuId == kHMHelpMenuID ) { int menuItem = formerHelpMenuItems ; @@ -499,7 +499,7 @@ bool wxMenu::MacMenuSelect( wxEvtHandler* handler, long when , int macMenuId, in } } } -#endif // __WXMAC_X__ +#endif // __DARWIN__ for (pos = 0, node = GetMenuItems().First(); node; node = node->Next(), pos++) { @@ -898,7 +898,7 @@ void wxMenuBar::MacMenuSelect(wxEvtHandler* handler, long when , int macMenuId, for (int i = 0; i < m_menus.GetCount() ; i++) { if ( m_menus[i]->MacGetMenuId() == macMenuId -#ifndef __WXMAC_X__ +#ifndef __DARWIN__ || ( macMenuId == kHMHelpMenuID && ( m_titles[i] == "?" || m_titles[i] == "&?" || m_titles[i] == wxApp::s_macHelpMenuTitleName ) ) #endif