// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "control.h"
#endif
if (!widget)
return;
- wxString buf(wxStripMenuCodes(label));
- wxXmString label_str(buf);
+ wxXmString label_str(wxStripMenuCodes(label));
XtVaSetValues (widget,
XmNlabelString, label_str(),
return wxEmptyString;
XmString text;
- char *s;
XtVaGetValues (widget,
XmNlabelString, &text,
NULL);
- if (XmStringGetLtoR (text, XmSTRING_DEFAULT_CHARSET, &s))
- {
- wxString str(s);
- XtFree (s);
- XmStringFree(text);
- return str;
- }
- else
- {
- // XmStringFree(text);
- return wxEmptyString;
- }
+ return wxXmStringToString( text );
}
bool wxControl::ProcessCommand(wxCommandEvent & event)