]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
bug in wxNotebook::OnSize() corrected
[wxWidgets.git] / src / gtk / window.cpp
index 9b8cc2ee02eb970b92ed3fabb534381411b86439..c315357b58624c5a1d84d50f32c0f970effa5f8f 100644 (file)
@@ -25,7 +25,7 @@
 #include "wx/dcclient.h"
 #include "wx/dnd.h"
 #include "wx/mdi.h"
-#include "wx/tabctrl.h"
+#include "wx/notebook.h"
 #include "gdk/gdkkeysyms.h"
 #include <math.h>
 #include "wx/gtk/win_gtk.h"
@@ -1415,9 +1415,9 @@ void wxWindow::AddChild( wxWindow *child )
     };
   };
   
-  if (IsKindOf(CLASSINFO(wxTabCtrl)))
+  if (IsKindOf(CLASSINFO(wxNotebook)))
   {
-    wxTabCtrl *tab = (wxTabCtrl*)this;
+    wxNotebook *tab = (wxNotebook*)this;
     tab->AddChild( child );
     return;
   };