X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f42a87192504d5b51532535b8cc8f9147e0a072..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/gtk/spinbutt.cpp diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp index 6da90d25b5..2d5eb9650c 100644 --- a/src/gtk/spinbutt.cpp +++ b/src/gtk/spinbutt.cpp @@ -8,20 +8,23 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "spinbutt.h" +#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" -#ifdef wxUSE_SPINBTN +#if wxUSE_SPINBTN #include "wx/utils.h" #include -#include -#include +#include "wx/gtk/private.h" //----------------------------------------------------------------------------- // idle system @@ -103,7 +106,7 @@ static void gtk_spinbutt_callback( GtkWidget *WXUNUSED(widget), wxSpinButton *wi //----------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxSpinButton,wxControl) -IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent); +IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent) BEGIN_EVENT_TABLE(wxSpinButton, wxControl) EVT_SIZE(wxSpinButton::OnSize) @@ -148,8 +151,7 @@ bool wxSpinButton::Create(wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); - - SetBackgroundColour( parent->GetBackgroundColour() ); + InheritAttributes(); Show( TRUE );