allow setting client size to work properly before window is shown

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-12-16 06:32:23 +00:00
parent 9337df1f34
commit d6b17e1aa3

View File

@@ -991,10 +991,12 @@ void wxTopLevelWindowGTK::DoSetSize( int x, int y, int width, int height, int si
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
{
// Since client size is being explicitly set, don't change it later
m_deferShowAllowed = false;
wxTopLevelWindowBase::DoSetClientSize(width, height);
// Since client size is being explicitly set, don't change it later
// Has to be done after calling base because it calls SetSize,
// which sets this true
m_deferShowAllowed = false;
}
void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const