From b88ccc4e8e2f933f2db3072757bbdce815578072 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Jul 2004 11:11:39 +0000 Subject: [PATCH] (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 --- src/gtk/statbox.cpp | 2 ++ src/gtk1/statbox.cpp | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.50.0