diff --git a/include/wx/gtk/infobar.h b/include/wx/gtk/infobar.h index 31fe8571b5..4956925a8b 100644 --- a/include/wx/gtk/infobar.h +++ b/include/wx/gtk/infobar.h @@ -55,6 +55,7 @@ public: protected: virtual bool GTKShouldConnectSizeRequest() const { return false; } + virtual void DoApplyWidgetStyle(GtkRcStyle *style); private: void Init() { m_impl = NULL; } diff --git a/src/gtk/infobar.cpp b/src/gtk/infobar.cpp index 1069a86147..c69787d152 100644 --- a/src/gtk/infobar.cpp +++ b/src/gtk/infobar.cpp @@ -266,4 +266,12 @@ void wxInfoBar::RemoveButton(wxWindowID btnid) wxFAIL_MSG( wxString::Format("button with id %d not found", btnid) ); } +void wxInfoBar::DoApplyWidgetStyle(GtkRcStyle *style) +{ + wxInfoBarGeneric::DoApplyWidgetStyle(style); + + if ( UseNative() ) + gtk_widget_modify_style(m_impl->m_label, style); +} + #endif // wxUSE_INFOBAR