X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b58197f24a87e0dc81ba0bdd4fc1370470a5ae2f..c127177f8dc31dbe99764852b8dbcc047d3ad826:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 721c31843d..102a55b09a 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -57,7 +57,7 @@ bool wxStaticText::Create(wxWindow *parent, // because the label is not yet created and because SetLabel() has a side // effect of changing the control size which might not be desirable wxControl::SetLabel(label); - m_widget = gtk_label_new( m_label ); + m_widget = gtk_label_new( m_label.mbc_str() ); GtkJustification justify; if ( style & wxALIGN_CENTER ) @@ -103,7 +103,7 @@ void wxStaticText::SetLabel( const wxString &label ) { wxControl::SetLabel(label); - gtk_label_set( GTK_LABEL(m_widget), m_label ); + gtk_label_set( GTK_LABEL(m_widget), m_label.mbc_str() ); // adjust the label size to the new label