]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/button.cpp
Corrected some wxMac images
[wxWidgets.git] / src / gtk / button.cpp
index 331298c3833a507b2aa83f0b87dfbf814d54f778..fabe9a234f7666b626b294b19d378db16f926108 100644 (file)
@@ -242,9 +242,11 @@ void wxButton::DoApplyWidgetStyle(GtkRcStyle *style)
         GtkWidget *box = GTK_BIN(child)->child;
         if ( GTK_IS_BOX(box) )
         {
-            GList *items = gtk_container_get_children(GTK_CONTAINER(box));
-            for ( GList *item = items; item; item = item->next )
-                gtk_widget_modify_style(GTK_WIDGET(item->data), style);
+            for (GList* item = GTK_BOX(box)->children; item; item = item->next)
+            {
+                GtkBoxChild* boxChild = static_cast<GtkBoxChild*>(item->data);
+                gtk_widget_modify_style(boxChild->widget, style);
+            }
         }
     }
 }