X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/cocoa/bmpbuttn.mm?ds=sidebyside diff --git a/src/cocoa/bmpbuttn.mm b/src/cocoa/bmpbuttn.mm index 4c12d488ca..5a17b19e8c 100644 --- a/src/cocoa/bmpbuttn.mm +++ b/src/cocoa/bmpbuttn.mm @@ -24,7 +24,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 +63,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); }