]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/radiobut_osx.cpp
Forgot about the drag source delegate, which is the perfect place to put GiveFeedback...
[wxWidgets.git] / src / osx / radiobut_osx.cpp
index f091b9e039512cd52bbc025899df006905144c1d..f1bd3fa49bf6e0d5f58dba49efd97d6cfe1b9a66 100644 (file)
@@ -97,7 +97,7 @@ void wxRadioButton::SetValue(bool val)
 
 bool wxRadioButton::GetValue() const
 {
-    return m_peer->GetValue();
+    return m_peer->GetValue() != 0;
 }
 
 void wxRadioButton::Command(wxCommandEvent& event)
@@ -106,11 +106,14 @@ void wxRadioButton::Command(wxCommandEvent& event)
     ProcessCommand( event );
 }
 
-bool wxRadioButton::HandleClicked( double timestampsec )
+bool wxRadioButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
 {
-    // if already set -> no action
-    if (GetValue())
-        return true;
+    if ( !m_peer->ButtonClickDidStateChange() )
+    {
+        // if already set -> no action
+        if (GetValue())
+            return true;
+    }
 
     wxRadioButton *cycle;
     cycle = this->NextInCycle();
@@ -157,7 +160,7 @@ wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle)
 }
 
 void wxRadioButton::RemoveFromCycle()
-{        
+{
     if ((m_cycle == NULL) || (m_cycle == this))
         return;