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:
parent
8a653baab6
commit
c13c9657a4
@ -192,11 +192,10 @@ int wxChoice::DoAppend(const wxString& item)
|
|||||||
{
|
{
|
||||||
XtVaSetValues ((Widget) m_buttonWidget, XmNmenuHistory, w, NULL);
|
XtVaSetValues ((Widget) m_buttonWidget, XmNmenuHistory, w, NULL);
|
||||||
Widget label = XmOptionButtonGadget ((Widget) m_buttonWidget);
|
Widget label = XmOptionButtonGadget ((Widget) m_buttonWidget);
|
||||||
XmString text = XmStringCreateSimple ((char*) (const char*) item);
|
wxXmString text( item );
|
||||||
XtVaSetValues (label,
|
XtVaSetValues (label,
|
||||||
XmNlabelString, text,
|
XmNlabelString, text(),
|
||||||
NULL);
|
NULL);
|
||||||
XmStringFree (text);
|
|
||||||
}
|
}
|
||||||
m_stringList.Add(item);
|
m_stringList.Add(item);
|
||||||
m_noStrings ++;
|
m_noStrings ++;
|
||||||
|
Loading…
Reference in New Issue
Block a user