]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notebook.cpp
Source cleaning, wxW headers, whitespaces and improved PCH support.
[wxWidgets.git] / src / gtk / notebook.cpp
index 34dd2bf59dba8d76414e88094fc2b3622e0a811c..8c22e6af9e96ffe8aa94b8bc40268b825e692e48 100644 (file)
@@ -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"
@@ -36,8 +37,6 @@
 
 #include <gdk/gdkkeysyms.h>
 
-#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 ))
     {