From: Robert Roebling <robert@roebling.de>
Date: Tue, 17 Aug 2004 20:53:29 +0000 (+0000)
Subject:  Applied Andreas patch for applying the widget style
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/81e88f5bc86bfca84443c8b44268779daf58e42a?ds=inline

 Applied Andreas patch for applying the widget style
   to a wxRadioBox's GtkFrame.


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

diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp
index 11d58c16d1..f5779a8936 100644
--- a/src/gtk/radiobox.cpp
+++ b/src/gtk/radiobox.cpp
@@ -686,6 +686,10 @@ void wxRadioBox::DoApplyWidgetStyle(GtkRcStyle *style)
 {
     gtk_widget_modify_style( m_widget, style );
 
+#ifdef __WXGTK20__
+    gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style);
+#endif
+
     wxList::compatibility_iterator node = m_boxes.GetFirst();
     while (node)
     {
diff --git a/src/gtk1/radiobox.cpp b/src/gtk1/radiobox.cpp
index 11d58c16d1..f5779a8936 100644
--- a/src/gtk1/radiobox.cpp
+++ b/src/gtk1/radiobox.cpp
@@ -686,6 +686,10 @@ void wxRadioBox::DoApplyWidgetStyle(GtkRcStyle *style)
 {
     gtk_widget_modify_style( m_widget, style );
 
+#ifdef __WXGTK20__
+    gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style);
+#endif
+
     wxList::compatibility_iterator node = m_boxes.GetFirst();
     while (node)
     {