X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/910b005366bf2dbf317284d02ac47c18c2c27ee9..e733c4ce1e24cf7e4b0b0d8362fc59aaa7a7641c:/src/cocoa/bmpbuttn.mm?ds=sidebyside diff --git a/src/cocoa/bmpbuttn.mm b/src/cocoa/bmpbuttn.mm index c35d8ea44b..99e9cbd4b7 100644 --- a/src/cocoa/bmpbuttn.mm +++ b/src/cocoa/bmpbuttn.mm @@ -4,9 +4,8 @@ // Author: David Elliott // Modified by: // Created: 2003/03/16 -// RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -24,7 +23,6 @@ #import #import -IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxControl) BEGIN_EVENT_TABLE(wxBitmapButton, wxBitmapButtonBase) END_EVENT_TABLE() WX_IMPLEMENT_COCOA_OWNER(wxBitmapButton,NSButton,NSControl,NSView) @@ -64,7 +62,7 @@ wxBitmapButton::~wxBitmapButton() void wxBitmapButton::Cocoa_wxNSButtonAction(void) { wxLogTrace(wxTRACE_COCOA,wxT("YAY!")); - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId()); + wxCommandEvent event(wxEVT_BUTTON, GetId()); InitCommandEvent(event); // event.SetEventObject(this); Command(event); }