X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e609c82594a57104ff5e0d4044b2e2697a4b576..be66f18ee1e173d26d236ff340dfe34f8ef0e9cb:/src/gtk1/notebook.cpp diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index a1e152cbe3..8acf3f1fd9 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -19,6 +19,7 @@ #include "wx/log.h" #include "wx/utils.h" #include "wx/panel.h" + #include "wx/msgdlg.h" #endif #include "wx/imaglist.h" @@ -30,8 +31,6 @@ #include -#include "wx/msgdlg.h" - // ---------------------------------------------------------------------------- // events // ---------------------------------------------------------------------------- @@ -325,6 +324,9 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id, m_acceptsFocus = true; m_insertCallback = (wxInsertChildFunction)wxInsertChildInNotebook; + if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT ) + style |= wxBK_TOP; + if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) {