]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
added OnMouse which will trigger context menu events, added better DoMenuPopup implem...
[wxWidgets.git] / src / motif / control.cpp
index af57174fe6e3a7d404ee4107ce91ae7a564e8d71..a5a8fc3bfa9f1cb85020b73699972550409d2ef3 100644 (file)
@@ -105,23 +105,11 @@ wxString wxControl::GetLabel() const
         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)