]> git.saurik.com Git - wxWidgets.git/commitdiff
allow setting client size to work properly before window is shown
authorPaul Cornett <paulcor@bullseye.com>
Wed, 16 Dec 2009 06:32:23 +0000 (06:32 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 16 Dec 2009 06:32:23 +0000 (06:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 2b7194d3eb36b3a7f84359a75ce81d43b87a042f..747e6218fa3fba49dff16bfd2867dcb0859de12b 100644 (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)
 {
+    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;
-
-    wxTopLevelWindowBase::DoSetClientSize(width, height);
 }
 
 void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const