]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/tglbtn.cpp
assert if ShowModal() is called after a previous Show() (#1416)
[wxWidgets.git] / src / gtk1 / tglbtn.cpp
index 78b4a596c9a61c5de4f75ff1cf993e6ab36468ec..a4f9d6da9e4c3483bc2ac00c542c01446438418d 100644 (file)
@@ -43,7 +43,7 @@ static void gtk_togglebutton_clicked_callback(GtkWidget *WXUNUSED(widget), wxTog
     wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, cb->GetId());
     event.SetInt(cb->GetValue());
     event.SetEventObject(cb);
-    cb->GetEventHandler()->ProcessEvent(event);
+    cb->HandleWindowEvent(event);
 }
 }