]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/toplevel.cpp
Updated to new PyCrust
[wxWidgets.git] / src / mgl / toplevel.cpp
index 595b1a828b7eec4cfeb62b9d258b3dcb9f912a27..3f2bbcd209f4d9f904cb33430b9fa8cf3dcf32b8 100644 (file)
@@ -77,7 +77,10 @@ bool wxTopLevelWindowMGL::Create(wxWindow *parent,
             size.y = sizeDpy.y / 5;
     }
     
-    wxWindow::Create(parent, id, pos, sizeOrig, style, name);
+    wxWindow::Create(NULL, id, pos, sizeOrig, style, name);
+    SetParent(parent);
+    if ( parent )
+        parent->AddChild(this);
 
     wxTopLevelWindows.Append(this);