X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..20193f1dab3557274a4e9cef76ad20199f7b9fef:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 1811e8892b..c315357b58 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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 #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))) {