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
This commit is contained in:
Paul Cornett
2011-12-22 18:21:41 +00:00
parent e718eb9840
commit 6041f69ca7

View File

@@ -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;
}