]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinbutt.cpp
removed unneeded makefiles
[wxWidgets.git] / src / gtk / spinbutt.cpp
index c3f87369a153c40dddbe2399930fbed7e22b0416..2d5eb9650cd5acf8b9447475eec714eef6d5c6b4 100644 (file)
@@ -8,11 +8,14 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "spinbutt.h"
     #pragma implementation "spinbutbase.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/spinbutt.h"
 
 #if wxUSE_SPINBTN
@@ -21,8 +24,7 @@
 
 #include <math.h>
 
-#include <gdk/gdk.h>
-#include <gtk/gtk.h>
+#include "wx/gtk/private.h"
 
 //-----------------------------------------------------------------------------
 // idle system
@@ -149,8 +151,7 @@ bool wxSpinButton::Create(wxWindow *parent,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
-    SetBackgroundColour( parent->GetBackgroundColour() );
+    InheritAttributes();
 
     Show( TRUE );