X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/166040cf594c63f8edf3534f2435630fb8c443a4..cac1cfce376de6ed10098eb85b5a6fb355c8c47e:/src/osx/tglbtn_osx.cpp?ds=sidebyside diff --git a/src/osx/tglbtn_osx.cpp b/src/osx/tglbtn_osx.cpp index 162739fe44..05d94f6ea5 100644 --- a/src/osx/tglbtn_osx.cpp +++ b/src/osx/tglbtn_osx.cpp @@ -31,7 +31,7 @@ // ---------------------------------------------------------------------------- IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxControl) -DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED) +wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent ); // ============================================================================ // implementation @@ -89,7 +89,7 @@ void wxToggleButton::Command(wxCommandEvent & event) ProcessCommand(event); } -bool wxToggleButton::HandleClicked( double timestampsec ) +bool wxToggleButton::OSXHandleClicked( double timestampsec ) { wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId); event.SetInt(GetValue()); @@ -156,7 +156,7 @@ void wxBitmapToggleButton::Command(wxCommandEvent & event) ProcessCommand(event); } -bool wxBitmapToggleButton::HandleClicked( double timestampsec ) +bool wxBitmapToggleButton::OSXHandleClicked( double timestampsec ) { wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId); event.SetInt(GetValue());