]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
bug in wxNotebook::OnSize() corrected
[wxWidgets.git] / src / gtk / window.cpp
index 1811e8892b8d4cb5837ed4ceb20c2c9cbac7a937..c315357b58624c5a1d84d50f32c0f970effa5f8f 100644 (file)
@@ -25,6 +25,7 @@
 #include "wx/dcclient.h"
 #include "wx/dnd.h"
 #include "wx/mdi.h"
+#include "wx/notebook.h"
 #include "gdk/gdkkeysyms.h"
 #include <math.h>
 #include "wx/gtk/win_gtk.h"
@@ -1413,6 +1414,14 @@ void wxWindow::AddChild( wxWindow *child )
       };
     };
   };
+  
+  if (IsKindOf(CLASSINFO(wxNotebook)))
+  {
+    wxNotebook *tab = (wxNotebook*)this;
+    tab->AddChild( child );
+    return;
+  };
+  
   m_children.Append( child );
   if (child->IsKindOf(CLASSINFO(wxFrame)) || child->IsKindOf(CLASSINFO(wxDialog)))
   {