Use wxXmString instead of XmString.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2002-12-24 18:37:10 +00:00
parent 8a653baab6
commit c13c9657a4

View File

@ -192,11 +192,10 @@ int wxChoice::DoAppend(const wxString& item)
{
XtVaSetValues ((Widget) m_buttonWidget, XmNmenuHistory, w, NULL);
Widget label = XmOptionButtonGadget ((Widget) m_buttonWidget);
XmString text = XmStringCreateSimple ((char*) (const char*) item);
wxXmString text( item );
XtVaSetValues (label,
XmNlabelString, text,
XmNlabelString, text(),
NULL);
XmStringFree (text);
}
m_stringList.Add(item);
m_noStrings ++;