]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/menu.cpp
Restore a use case that was lost with the last set of updates, using a
[wxWidgets.git] / src / mac / classic / menu.cpp
index 12cba13bf229cfb0c6951ed79b6dfbf38f2efbce..cb384236e069f9d1df44456fef948e7e22e104af 100644 (file)
     #include "wx/app.h"
     #include "wx/utils.h"
     #include "wx/window.h"
+    #include "wx/frame.h"
+    #include "wx/menuitem.h"
 #endif
 
-#include "wx/menuitem.h"
-#include "wx/frame.h"
-
 #include "wx/mac/uma.h"
 
 // other standard headers
@@ -575,7 +574,7 @@ void wxMenuBar::MacInstallMenuBar()
                     }
                     else
                     {
-                        wxAcceleratorEntry* entry = wxGetAccelFromString( item->GetText() ) ;
+                        wxAcceleratorEntry* entry = wxAcceleratorEntry::Create( item->GetText() ) ;
 
                         if ( item->GetId() == wxApp::s_macAboutMenuItemId )
                         {