]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/menu.cpp
several patches and extensions
[wxWidgets.git] / src / mac / menu.cpp
index 70ea0b4fba74f944185fc5b29c7e0db842666542..6e2d2d6137a1a3333e40fa1272782fc082bb8b65 100644 (file)
@@ -276,15 +276,6 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
 {
     bool processed = FALSE;
 
-#if WXWIN_COMPATIBILITY
-    // Try a callback
-    if (m_callback)
-    {
-        (void)(*(m_callback))(*this, event);
-        processed = TRUE;
-    }
-#endif WXWIN_COMPATIBILITY
-
     // Try the menu's event handler
     if ( !processed && GetEventHandler())
     {
@@ -755,7 +746,7 @@ wxMenu *wxMenuBar::Remove(size_t pos)
         Refresh();
     }
 
-    m_titles.Remove(pos);
+    m_titles.RemoveAt(pos);
 
     return menu;
 }