]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed usage of wxXmString
authorJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 14:50:10 +0000 (14:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 15 Feb 2002 14:50:10 +0000 (14:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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);
 }