]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stockitem.cpp
Fix for limited build required by headers of free DMC.
[wxWidgets.git] / src / common / stockitem.cpp
index 80fd5e25f555af7f1f003dcebf1ae163d10e23dc..1a75aed568a90361eed77f6d516ea5b54702571a 100644 (file)
@@ -95,9 +95,15 @@ bool wxIsStockID(wxWindowID id)
 
 wxString wxGetStockLabel(wxWindowID id)
 {
+#ifdef __SMARTPHONE__
+    #define STOCKITEM(stockid, label) \
+        case stockid:                 \
+            return wxStripMenuCodes(label);
+#else
     #define STOCKITEM(stockid, label) \
         case stockid:                 \
             return label;
+#endif
 
     switch (id)
     {
@@ -158,7 +164,7 @@ wxString wxGetStockLabel(wxWindowID id)
     };
 
     #undef STOCKITEM
-    
+
     return wxEmptyString;
 }
 
@@ -171,11 +177,11 @@ bool wxIsStockLabel(wxWindowID id, const wxString& label)
 
     if (label == stock)
         return true;
-    
+
     stock.Replace(_T("&"), wxEmptyString);
     if (label == stock)
         return true;
-    
+
     return false;
 }
 
@@ -189,9 +195,9 @@ const char *wxGetStockGtkID(wxWindowID id)
     #define STOCKITEM(wx,gtk)      \
         case wx:                   \
             return gtk;
-    
+
     #define STOCKITEM_MISSING(wx)  \
-        case wxid:                 \
+        case wx:                 \
             return NULL;
 
     #if GTK_CHECK_VERSION(2,4,0)
@@ -259,7 +265,7 @@ const char *wxGetStockGtkID(wxWindowID id)
     };
 
     #undef STOCKITEM
-    
+
     return NULL;
 }