]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/checkbox.cpp
Smooth Aqua buttons in wxTreeCtrl.
[wxWidgets.git] / src / univ / checkbox.cpp
index 916ea5c501fe28e03174072fa4ea9a66949196d1..295756acd0d7a1f944a98027b02a44862943c8e8 100644 (file)
@@ -276,12 +276,12 @@ wxStdCheckboxInputHandler::wxStdCheckboxInputHandler(wxInputHandler *inphand)
 {
 }
 
-bool wxStdCheckboxInputHandler::HandleActivation(wxControl *control,
+bool wxStdCheckboxInputHandler::HandleActivation(wxInputConsumer *consumer,
                                                  bool activated)
 {
     // only the focused checkbox appearance changes when the app gains/loses
     // activation
-    return control->IsFocused();
+    return consumer->GetInputWindow()->IsFocused();
 }
 
 #endif // wxUSE_CHECKBOX