diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index dee13ff82c..705da6fa50 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -105,7 +105,6 @@ void wxControl::PostCreation(const wxSize& size) gtk_widget_ensure_style(m_widget); #endif - GTKApplyWidgetStyle(); SetInitialSize(size); } diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 694c0d503a..b1c72ada50 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -101,8 +101,6 @@ void wxMenuBar::Init(size_t n, wxMenu *menus[], const wxString titles[], long st } PostCreation(); - - GTKApplyWidgetStyle(); #endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2/!wxUSE_LIBHILDON && !wxUSE_LIBHILDON2 g_object_ref_sink(m_widget); 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);