X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92ef38ee6b5174a22abc8cf1436c5002b4b9d887..2a45803fc3877afd0ae3ce356dfe216505165882:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 81d7995629..3805f1ba5a 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2020,8 +2020,6 @@ void wxWindowGTK::GTKHandleRealized() } #endif - GTKApplyWidgetStyle(); - wxWindowCreateEvent event(static_cast(this)); event.SetEventObject( this ); GTKProcessEvent( event ); @@ -2582,6 +2580,9 @@ void wxWindowGTK::PostCreation() if (!WX_IS_PIZZA(gtk_widget_get_parent(m_widget)) && !GTK_IS_WINDOW(m_widget)) gtk_widget_set_size_request(m_widget, m_width, m_height); + // apply any font or color changes made before creation + GTKApplyWidgetStyle(); + InheritAttributes(); SetLayoutDirection(wxLayout_Default);