X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93763ad5ba900aecb9220a36ebe7447313ea3e31..f0f03f324281e2a2eb137f532295dc2bcaa120d3:/src/gtk1/checkbox.cpp diff --git a/src/gtk1/checkbox.cpp b/src/gtk1/checkbox.cpp index a85a9b4acf..4bd1fd35af 100644 --- a/src/gtk1/checkbox.cpp +++ b/src/gtk1/checkbox.cpp @@ -36,7 +36,8 @@ extern wxWindowGTK *g_delayedFocus; //----------------------------------------------------------------------------- extern "C" { -static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb) +static void gtk_checkbox_toggled_callback(GtkWidget *WXUNUSED(widget), + wxCheckBox *cb) { if (g_isIdle) wxapp_install_idle_handler(); @@ -49,7 +50,7 @@ static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb) wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, cb->GetId()); event.SetInt(cb->GetValue()); event.SetEventObject(cb); - cb->GetEventHandler()->ProcessEvent(event); + cb->HandleWindowEvent(event); } }