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:
@@ -2613,14 +2613,6 @@ void wxWindowGTK::OnInternalIdle()
|
|||||||
RealizeTabOrder();
|
RealizeTabOrder();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update style if the window was not yet realized when
|
|
||||||
// SetBackgroundStyle() was called
|
|
||||||
if (m_needsStyleChange)
|
|
||||||
{
|
|
||||||
SetBackgroundStyle(GetBackgroundStyle());
|
|
||||||
m_needsStyleChange = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
wxWindowBase::OnInternalIdle();
|
wxWindowBase::OnInternalIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3972,7 +3964,7 @@ bool wxWindowGTK::SetBackgroundStyle(wxBackgroundStyle style)
|
|||||||
}
|
}
|
||||||
else // window not realized yet
|
else // window not realized yet
|
||||||
{
|
{
|
||||||
// Do in OnIdle, because the window is not yet available
|
// Do when window is realized
|
||||||
m_needsStyleChange = true;
|
m_needsStyleChange = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user