X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8375af8ff97a3649361b988a40b991a8cdaab09..ef6ece2352e739f843d9fc08d96d46b6467b83d6:/src/gtk/checkbox.cpp?ds=sidebyside diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 1e25d81b9d..3e925d1160 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -84,7 +84,7 @@ static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb) wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, cb->GetId()); event.SetInt(cb->Get3StateValue()); event.SetEventObject(cb); - cb->GetEventHandler()->ProcessEvent(event); + cb->HandleWindowEvent(event); } } @@ -144,6 +144,7 @@ bool wxCheckBox::Create(wxWindow *parent, m_widgetLabel = GTK_BIN(m_widgetCheckbox)->child; m_widget = m_widgetCheckbox; } + g_object_ref(m_widget); SetLabel( label ); g_signal_connect (m_widgetCheckbox, "toggled",