]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/slider.cpp
Spin control now emits TEXT_ENTER commands.
[wxWidgets.git] / src / gtk1 / slider.cpp
index 799f21d2b11f5f80981f3b1c193a9919ff42a4ad..f3ab24213f9f949e8eda96895e50e4a8b61325c5 100644 (file)
@@ -7,10 +7,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "slider.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/slider.h"
 
 #if wxUSE_SLIDER
@@ -139,8 +142,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
-    SetBackgroundColour( parent->GetBackgroundColour() );
+    InheritAttributes();
 
     Show( TRUE );