X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8d1818419134415331bfe9f6d4703a8f0742caa..b6a20a20d010d643e52914f51aa0700df0da925f:/src/motif/spinbutt.cpp?ds=sidebyside diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index 99bebdfee0..ca3a6e2af1 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -9,10 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "spinbutt.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/spinbutt.h" #include "wx/spinctrl.h" #include "wx/timer.h" @@ -183,7 +186,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id, ArrowDirection d, const wxPoint& pos, const wxSize& size ) { - int arrow_dir; + int arrow_dir = XmARROW_UP; switch( d ) { @@ -225,6 +228,8 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id, AttachWidget( parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y ); + SetForegroundColour( parent->GetBackgroundColour() ); + return TRUE; } @@ -272,8 +277,6 @@ bool wxSpinButton::Create( wxWindow *parent, wxWindowID id, SetName(name); - InitBase(); - m_windowId = ( id == -1 ) ? NewControlId() : id; bool isVert = IsVertical();