From be35405129932325a506bc27064bff2dcb76a4ad Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 21 Dec 2017 10:06:10 -0800 Subject: [PATCH] Apply current style to wxStaticBox container when it's created Background may have been set before adding any children See #15466 --- src/gtk/statbox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 71ec2c0dde..797d80caf8 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -130,6 +130,7 @@ void wxStaticBox::AddChild( wxWindowBase *child ) m_wxwindow = wxPizza::New(); gtk_widget_show( m_wxwindow ); gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow ); + GTKApplyWidgetStyle(); } wxStaticBoxBase::AddChild(child);