Fixed usage of wxXmString

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-15 14:50:10 +00:00
parent f80aa2dee1
commit ea19087eec

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