]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinbutt.cpp
changing guard to support popupwindows as well
[wxWidgets.git] / src / mac / carbon / spinbutt.cpp
index 850e708252e036b5ecb0b565889085b7099dc7c4..02ed2e94236554e9df69b0117da7159573faa2ac 100644 (file)
@@ -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,7 +145,7 @@ void wxSpinButton::MacHandleValueChanged( int inc )
         wxSpinEvent event2( scrollEvent, GetId() );
         event2.SetPosition( m_value );
         event2.SetEventObject( this );
-        GetEventHandler()->ProcessEvent( event2 );
+        HandleWindowEvent( event2 );
     }
 }