X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e225fe17a8dc6a209d224cc966463644c6cc466f..5c7b506103cfc078a821860766e31c47d595e07f:/src/mac/carbon/spinbutt.cpp diff --git a/src/mac/carbon/spinbutt.cpp b/src/mac/carbon/spinbutt.cpp index 55de645d54..02ed2e9423 100644 --- a/src/mac/carbon/spinbutt.cpp +++ b/src/mac/carbon/spinbutt.cpp @@ -133,7 +133,7 @@ void wxSpinButton::MacHandleValueChanged( int inc ) event.SetPosition( m_value ); event.SetEventObject( this ); - if ((GetEventHandler()->ProcessEvent( event )) && !event.IsAllowed()) + if ((HandleWindowEvent( event )) && !event.IsAllowed()) m_value = oldValue; m_peer->SetValue( m_value ); @@ -145,11 +145,13 @@ void wxSpinButton::MacHandleValueChanged( int inc ) wxSpinEvent event2( scrollEvent, GetId() ); event2.SetPosition( m_value ); event2.SetEventObject( this ); - GetEventHandler()->ProcessEvent( event2 ); + HandleWindowEvent( event2 ); } } -void wxSpinButton::MacHandleControlClick( WXWidget control, wxInt16 controlpart, bool mouseStillDown ) +void wxSpinButton::MacHandleControlClick(WXWidget WXUNUSED(control), + wxInt16 controlpart, + bool WXUNUSED(mouseStillDown)) { int nScrollInc = 0; @@ -170,7 +172,8 @@ void wxSpinButton::MacHandleControlClick( WXWidget control, wxInt16 controlpart, MacHandleValueChanged( nScrollInc ) ; } -wxInt32 wxSpinButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF event ) +wxInt32 wxSpinButton::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler), + WXEVENTREF WXUNUSED(event)) { #if 0 // these have been handled by the live action proc already