]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/bitmaptogglebuttontest.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / tests / controls / bitmaptogglebuttontest.cpp
index 25783069adf1bceb69590b5ac8f4bb2cda38e159..03a7e7eac03869009e2129dbae743f3621b00707 100644 (file)
@@ -74,7 +74,7 @@ void BitmapToggleButtonTestCase::tearDown()
 void BitmapToggleButtonTestCase::Click()
 {
 #if wxUSE_UIACTIONSIMULATOR
-    EventCounter clicked(m_button, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED);
+    EventCounter clicked(m_button, wxEVT_TOGGLEBUTTON);
 
     wxUIActionSimulator sim;
 
@@ -101,7 +101,7 @@ void BitmapToggleButtonTestCase::Click()
 
 void BitmapToggleButtonTestCase::Value()
 {
-    EventCounter clicked(m_button, wxEVT_COMMAND_BUTTON_CLICKED);
+    EventCounter clicked(m_button, wxEVT_BUTTON);
 
     m_button->SetValue(true);