]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
A better compile fix for Wine (which lacks pbt.h).
[wxWidgets.git] / src / gtk / frame.cpp
index 696d588eef035abcc30e319811a5139ce34c429f..19cacb5d83659444f53608ad78cbc8f2df99f9af 100644 (file)
     #include "wx/app.h"
     #include "wx/dcclient.h"
     #include "wx/menu.h"
     #include "wx/app.h"
     #include "wx/dcclient.h"
     #include "wx/menu.h"
-#endif // WX_PRECOMP
-
-#include "wx/dialog.h"
-#include "wx/control.h"
-#if wxUSE_TOOLBAR
+    #include "wx/dialog.h"
+    #include "wx/control.h"
     #include "wx/toolbar.h"
     #include "wx/toolbar.h"
-#endif
-#if wxUSE_STATUSBAR
     #include "wx/statusbr.h"
     #include "wx/statusbr.h"
-#endif
+#endif // WX_PRECOMP
 
 #include <glib.h>
 #include "wx/gtk/private.h"
 
 #include <glib.h>
 #include "wx/gtk/private.h"
@@ -195,9 +190,6 @@ static void wxInsertChildInFrame( wxFrame* parent, wxWindow* child )
                          child->m_width,
                          child->m_height );
     }
                          child->m_width,
                          child->m_height );
     }
-
-    // Resize on OnInternalIdle
-    parent->GtkUpdateSize();
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------