X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e37168448f39dc710839fcdc3b34033a3e2e007e..4c420a80e0fb11511b235411875ba5d3e0eb8492:/src/gtk/statbox.cpp diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index a15681c061..d057ebbd4c 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -91,19 +91,12 @@ void wxStaticBox::SetLabel( const wxString &label ) m_label.empty() ? (char *)NULL : (const char*) wxGTK_CONV( m_label ) ); } -bool wxStaticBox::SetFont( const wxFont &font ) +void wxStaticBox::DoApplyWidgetStyle(GtkRcStyle *style) { - wxControl::SetFont( font ); - - if (GTK_FRAME(m_widget)->label_widget) - { - GtkRcStyle *style = CreateWidgetStyle(true); - if ( style ) - { - gtk_widget_modify_style( GTK_FRAME(m_widget)->label_widget, style); - gtk_rc_style_unref(style); - } - } + gtk_widget_modify_style(m_widget, style); +#ifdef __WXGTK20__ + gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style); +#endif } // static