Apply current style to wxStaticBox container when it's created

Background may have been set before adding any children
See #15466
This commit is contained in:
Paul Cornett
2017-12-21 10:06:10 -08:00
parent c867e0a23b
commit be35405129

View File

@@ -130,6 +130,7 @@ void wxStaticBox::AddChild( wxWindowBase *child )
m_wxwindow = wxPizza::New(); m_wxwindow = wxPizza::New();
gtk_widget_show( m_wxwindow ); gtk_widget_show( m_wxwindow );
gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow ); gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow );
GTKApplyWidgetStyle();
} }
wxStaticBoxBase::AddChild(child); wxStaticBoxBase::AddChild(child);