]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/mdi.cpp
just disable alpha buffer to make it more portable as
[wxWidgets.git] / src / gtk1 / mdi.cpp
index e9acbdf01acd6b949f25d3f9c4ac331d70204fc4..0b98599d59e20200bcb05c71852cb303986a2af3 100644 (file)
@@ -12,6 +12,9 @@
 #endif
 
 #include "wx/mdi.h"
+
+#if wxUSE_MDI_ARCHITECTURE
+
 #include "wx/dialog.h"
 #include "wx/menu.h"
 #include <wx/intl.h>
@@ -406,7 +409,12 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style )
 
     m_insertCallback = (wxInsertChildFunction)wxInsertChildInMDI;
 
-    PreCreation( parent, -1, wxPoint(10,10), wxSize(100,100), style, "wxMDIClientWindow" );
+    if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
+        !CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, style, wxDefaultValidator, _T("wxMDIClientWindow") ))
+    {
+        wxFAIL_MSG( _T("wxMDIClientWindow creation failed") );
+       return FALSE;
+    }
 
     m_widget = gtk_notebook_new();
 
@@ -421,3 +429,4 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style )
     return TRUE;
 }
 
+#endif