]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/bmpbuttn.mm
use correct signature for class init function
[wxWidgets.git] / src / cocoa / bmpbuttn.mm
index e3ebb7fd0239227e412c655b7ce0c9080dfb44a6..5a17b19e8c62dd210033f1158217a2505b11c99d 100644 (file)
@@ -63,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);
 }