X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2fcfd94d34b25233a0bf14f3ac388ae747bccb7..8de5b24e54bd7fec2a9e2011b2402b3f33117bd7:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index f71214c940..d64273b780 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -196,11 +196,10 @@ bool wxButton::IsOwnGtkWindow( GdkWindow *window ) #endif } -void wxButton::ApplyWidgetStyle() +void wxButton::DoApplyWidgetStyle(GtkRcStyle *style) { - SetWidgetStyle(); - gtk_widget_set_style( m_widget, m_widgetStyle ); - gtk_widget_set_style( BUTTON_CHILD(m_widget), m_widgetStyle ); + gtk_widget_modify_style(m_widget, style); + gtk_widget_modify_style(BUTTON_CHILD(m_widget), style); } wxSize wxButton::DoGetBestSize() const