Don't set the initial size as minimal size for top level windows.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Dec 2009 15:24:59 +0000 (15:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 8 Dec 2009 15:24:59 +0000 (15:24 +0000)
commit62354609e69487e1066e1b1129c254c886cfa0fb
tree0900a17ea81687a30897449e8ff17bc87d6e5f44
parent64178c36026e5e31c25cf0c23384249bbc7e7439
Don't set the initial size as minimal size for top level windows.

Correct the change of r62814: only call SetMinSize() for non-top-level windows
as the user should be able to resize the top-level ones to be smaller than
their initial size.

This also fixes the GTK+ warning resulting from calling wxTLW::SetMinSize()
from the ctor, before the window is realized.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wincmn.cpp