// 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
m_parent->DoAddChild( this );
PostCreation();
-
- SetBackgroundColour( parent->GetBackgroundColour() );
+ InheritAttributes();
Show( TRUE );
bool wxSlider::IsOwnGtkWindow( GdkWindow *window )
{
GtkRange *range = GTK_RANGE(m_widget);
+#ifdef __WXGTK20__
+ return (range->event_window == window);
+#else
return ( (window == GTK_WIDGET(range)->window)
-#ifndef __WXGTK20__
|| (window == range->trough)
|| (window == range->slider)
|| (window == range->step_forw)
- || (window == range->step_back)
-#endif // GTK+ 1.x
- );
+ || (window == range->step_back) );
+#endif
}
void wxSlider::ApplyWidgetStyle()