From: Julian Smart Date: Fri, 15 Feb 2002 14:50:10 +0000 (+0000) Subject: Fixed usage of wxXmString X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ea19087eec7e491376d1a666b3eb450c4cdd8c96 Fixed usage of wxXmString git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/control.cpp b/src/motif/control.cpp index 0a5e6377f1..1dc7e344c5 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -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); }