]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/stattext.cpp
Applied patch [ 666379 ] CalCtrl doesn't use best sizes for the year combobox
[wxWidgets.git] / src / gtk / stattext.cpp
index 6afa92e419906f44f5a69e3509f0eea3fcda6fe9..255ecb25f8f30cd0e4d1b14dd3b144f0eac1cc72 100644 (file)
@@ -109,8 +109,13 @@ bool wxStaticText::Create(wxWindow *parent,
 
 wxString wxStaticText::GetLabel() const
 {
 
 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);
 }
 
     return wxString(str);
 }