X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7517dcb56e4153e11abc99f464d70ddeb25e3af0..a5655d37db9baabce654849fd66173f95f74e230:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 7e3d81d770..61ba78062b 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -72,12 +72,6 @@ bool wxStaticText::Create(wxWindow *parent, gtk_label_set_justify(GTK_LABEL(m_widget), justify); - // GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2 - static const float labelAlignments[] = { 0.0, 1.0, 0.5 }; - gtk_misc_set_alignment(GTK_MISC(m_widget), labelAlignments[justify], 0.0); - - gtk_label_set_line_wrap( GTK_LABEL(m_widget), TRUE ); - #ifdef __WXGTK26__ if (!gtk_check_version(2,6,0)) { @@ -94,6 +88,12 @@ bool wxStaticText::Create(wxWindow *parent, } #endif // __WXGTK26__ + // GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2 + static const float labelAlignments[] = { 0.0, 1.0, 0.5 }; + gtk_misc_set_alignment(GTK_MISC(m_widget), labelAlignments[justify], 0.0); + + gtk_label_set_line_wrap( GTK_LABEL(m_widget), TRUE ); + SetLabel(label); m_parent->DoAddChild( this );