]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statusbr.cpp
move frame decorations drawing to the base class
[wxWidgets.git] / src / generic / statusbr.cpp
index 281be6f0fddf53005710d8838c3ef8ce8135603e..b963470a674c26b4306c8cacf673901a052832d7 100644 (file)
 #include "wx/statusbr.h"
 
 #ifndef WX_PRECOMP
-    #include "wx/frame.h"
     #include "wx/settings.h"
     #include "wx/dcclient.h"
 #endif
 
 #ifdef __WXGTK20__
-#include "wx/gtk/private.h"
-#include "wx/gtk/win_gtk.h"
+    #include <gtk/gtk.h>
+    #include "wx/gtk/win_gtk.h"
 #endif
 
 // we only have to do it here when we use wxStatusBarGeneric in addition to the
@@ -67,9 +66,10 @@ bool wxStatusBarGeneric::Create(wxWindow *parent,
                                 long style,
                                 const wxString& name)
 {
+    style |= wxTAB_TRAVERSAL | wxFULL_REPAINT_ON_RESIZE;
     if ( !wxWindow::Create(parent, id,
                            wxDefaultPosition, wxDefaultSize,
-                           style | wxTAB_TRAVERSAL, name) )
+                           style, name) )
         return false;
 
     // The status bar should have a themed background