]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
need wxUSE_WCHAR_T around wxConvLocal
[wxWidgets.git] / src / motif / control.cpp
index 0a5e6377f102b7020af67e940a1f91be1c45a1bc..1dc7e344c54a1c0ae1ceab45959b157b2a50708a 100644 (file)
@@ -27,6 +27,8 @@
 #pragma message enable nosimpint
 #endif
 
+#include "wx/motif/private.h"
+
 IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
 
 BEGIN_EVENT_TABLE(wxControl, wxWindow)
@@ -68,11 +70,11 @@ void wxControl::SetLabel(const wxString& label)
     if (!widget)
         return;
 
-    wxString buf(wxStripMenuCodes());
+    wxString buf(wxStripMenuCodes(label));
     wxXmString label_str(buf);
 
     XtVaSetValues (widget,
-        XmNlabelString, label_str,
+        XmNlabelString, label_str(),
         XmNlabelType, XmSTRING,
         NULL);
 }