X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7545e13206beaed9058e0ccbc53c6ec9013c6cad..3e8adad7d79dff655b13952764ed603578edf0e9:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index d6c4bc496d..1cdcca5073 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -7,10 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "statbox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -77,8 +73,8 @@ bool wxStaticBox::Create( wxWindow *parent, else // wxALIGN_LEFT xalign = 0.0; - if ( xalign ) - gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.0); + if ( style & (wxALIGN_RIGHT | wxALIGN_CENTER) ) // left alignment is default + gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.5); return TRUE; } @@ -94,7 +90,9 @@ void wxStaticBox::SetLabel( const wxString &label ) void wxStaticBox::DoApplyWidgetStyle(GtkRcStyle *style) { gtk_widget_modify_style(m_widget, style); +#ifdef __WXGTK20__ gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style); +#endif } // static