]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/toplevel.cpp
call wxApp::OnExceptionInMainLoop() when an exception occurs (refactored the change...
[wxWidgets.git] / src / gtk1 / toplevel.cpp
index 78fd8c93cb1d95be493bd75ec0c05ce88c40ac2d..b4a0ed8489592ba1856e716e9705b6fa0d14a76f 100644 (file)
@@ -327,14 +327,8 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
     // always create a frame of some reasonable, even if arbitrary, size (at
     // least for MSW compatibility)
     wxSize size = sizeOrig;
-    if ( size.x == -1 || size.y == -1 )
-    {
-        wxSize sizeDpy = wxGetDisplaySize();
-        if ( size.x == -1 )
-            size.x = sizeDpy.x / 3;
-        if ( size.y == -1 )
-            size.y = sizeDpy.y / 5;
-    }
+    size.x = WidthDefault(size.x);
+    size.y = HeightDefault(size.y);
 
     wxTopLevelWindows.Append( this );