X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02c0348e97d36f9907cc59bf9c75e04ffd93f889..c3b0c2c3dc1e2a76af69082f63149174525d97d5:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 6afa92e419..255ecb25f8 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -109,8 +109,13 @@ bool wxStaticText::Create(wxWindow *parent, wxString wxStaticText::GetLabel() const { - char *str = (char *) NULL; - gtk_label_get( GTK_LABEL(m_widget), &str ); + GtkLabel *label = GTK_LABEL(m_widget); + +#ifdef __WXGTK20__ + wxString str = wxGTK_CONV_BACK( gtk_label_get_text( label ) ); +#else + wxString str = wxString( label->label ); +#endif return wxString(str); }