]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menuitem.cpp
OS/2 fixes for this week.
[wxWidgets.git] / src / motif / menuitem.cpp
index deaad78a6fc565fdc6e90d9b7e93cbdd3593e85f..bb464edeaecfe88deecfcbd700c704511f56fb52 100644 (file)
@@ -21,6 +21,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/defs.h"
+
 #include "wx/menu.h"
 #include "wx/menuitem.h"
 #include "wx/utils.h"
@@ -154,12 +156,12 @@ void wxMenuItem::Check(bool bDoCheck)
     }
 }
 
-wxString wxMenuItem::GetLabel() const
+/* static */
+wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
-    return wxStripMenuCodes(m_text);
+    return wxStripMenuCodes(text);
 }
 
-
 // ----------------------------------------------------------------------------
 // wxMenuItemBase
 // ----------------------------------------------------------------------------