]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure that info bar message uses the set font/colours in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:56:17 +0000 (22:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:56:17 +0000 (22:56 +0000)
Propagate the font and colours set on wxInfoBar window itself to its label in
the native GTK implementation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/infobar.h
src/gtk/infobar.cpp

index 31fe8571b59daa78a562e979f1bf6df0c073b266..4956925a8b2116fd5709bae8cc9a976b96e0711a 100644 (file)
@@ -55,6 +55,7 @@ public:
 
 protected:
     virtual bool GTKShouldConnectSizeRequest() const { return false; }
+    virtual void DoApplyWidgetStyle(GtkRcStyle *style);
 
 private:
     void Init() { m_impl = NULL; }
index 1069a861475dccd9674275b4e2abcad9b541d8e2..c69787d1520d5cc99b9ad91564ed873d0524e973 100644 (file)
@@ -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