X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5dcdce25a453ead94d9bb83a38b4e07b560026a0..f8d0234d39c66f3d1d7fc2346562cb96c8c7be20:/src/osx/tglbtn_osx.cpp diff --git a/src/osx/tglbtn_osx.cpp b/src/osx/tglbtn_osx.cpp index 639a85d4ba..05d94f6ea5 100644 --- a/src/osx/tglbtn_osx.cpp +++ b/src/osx/tglbtn_osx.cpp @@ -24,14 +24,14 @@ #include "wx/tglbtn.h" #include "wx/osx/private.h" -#include "wx/osx/bmpbuttn.h" // for wxDEFAULT_BUTTON_MARGIN +#include "wx/bmpbuttn.h" // for wxDEFAULT_BUTTON_MARGIN // ---------------------------------------------------------------------------- // macros // ---------------------------------------------------------------------------- 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());