]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/tglbtn.cpp
reset the tooltip text before changing it, this apparently prevents a spurious redraw...
[wxWidgets.git] / src / univ / tglbtn.cpp
index b8649b010aca5117751d087a6e7b9f0ab267d658..91a90ac238073fda4a65ed1c949b2c1beb1a01c2 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "wx/tglbtn.h"
 
-DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)
+wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
 
 IMPLEMENT_DYNAMIC_CLASS(wxToggleButton, wxButton)