X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce63f2e9eb49fb50a6dbd188f29116a670c9f922..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/osx/button_osx.cpp diff --git a/src/osx/button_osx.cpp b/src/osx/button_osx.cpp index 32417fa88c..bd55cf3c46 100644 --- a/src/osx/button_osx.cpp +++ b/src/osx/button_osx.cpp @@ -128,7 +128,7 @@ void wxButton::Command (wxCommandEvent & WXUNUSED(event)) bool wxButton::OSXHandleClicked( double WXUNUSED(timestampsec) ) { - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId); + wxCommandEvent event(wxEVT_BUTTON, m_windowId); event.SetEventObject(this); ProcessCommand(event); return true; @@ -173,7 +173,7 @@ bool wxDisclosureTriangle::IsOpen() const bool wxDisclosureTriangle::OSXHandleClicked( double WXUNUSED(timestampsec) ) { // Just emit button event for now - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId); + wxCommandEvent event(wxEVT_BUTTON, m_windowId); event.SetEventObject(this); ProcessCommand(event);