]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/notebook.cpp
Avoid problems with events that might be sent during creation of controls.
[wxWidgets.git] / src / gtk1 / notebook.cpp
index 6d647cc323073a3cc1ccb0a5936f5a259b27c07d..4f08d0c1d55846e0fa14cbc6e3b761f4fd9e1257 100644 (file)
     #include "wx/utils.h"
     #include "wx/panel.h"
     #include "wx/msgdlg.h"
+    #include "wx/bitmap.h"
 #endif
 
 #include "wx/imaglist.h"
-#include "wx/bitmap.h"
 #include "wx/fontutil.h"
 
 #include "wx/gtk1/private.h"
@@ -324,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 ))
     {