From: Paul Cornett Date: Thu, 22 Dec 2011 18:21:41 +0000 (+0000) Subject: remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6041f69ca7bbb7c39e4ba64e407bc3ac39e3687f remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize handler, closes #13799 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index fbbbd782e3..1a3f1065b0 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2613,14 +2613,6 @@ void wxWindowGTK::OnInternalIdle() RealizeTabOrder(); } - // Update style if the window was not yet realized when - // SetBackgroundStyle() was called - if (m_needsStyleChange) - { - SetBackgroundStyle(GetBackgroundStyle()); - m_needsStyleChange = false; - } - wxWindowBase::OnInternalIdle(); } @@ -3972,7 +3964,7 @@ bool wxWindowGTK::SetBackgroundStyle(wxBackgroundStyle style) } else // window not realized yet { - // Do in OnIdle, because the window is not yet available + // Do when window is realized m_needsStyleChange = true; }