From: Vadim Zeitlin Date: Sun, 4 Jul 2004 11:11:39 +0000 (+0000) Subject: (blind) compilation fix for GTK+ 1.x after last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b88ccc4e8e2f933f2db3072757bbdce815578072?hp=7545e13206beaed9058e0ccbc53c6ec9013c6cad (blind) compilation fix for GTK+ 1.x after last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index d6c4bc496d..d057ebbd4c 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -94,7 +94,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 diff --git a/src/gtk1/statbox.cpp b/src/gtk1/statbox.cpp index d6c4bc496d..d057ebbd4c 100644 --- a/src/gtk1/statbox.cpp +++ b/src/gtk1/statbox.cpp @@ -94,7 +94,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