X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecf3b4a57f0aeebd47e247c721d499d42798fe33..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/gtk/tglbtn.cpp diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index c90a09ec6d..120e9d75fa 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -28,9 +28,6 @@ extern bool g_blockEventsOnDrag; extern "C" { static void gtk_togglebutton_clicked_callback(GtkWidget *WXUNUSED(widget), wxToggleButton *cb) { - if (g_isIdle) - wxapp_install_idle_handler(); - if (!cb->m_hasVMT || g_blockEventsOnDrag) return; @@ -40,7 +37,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); } } @@ -58,9 +55,6 @@ bool wxToggleBitmapButton::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString &name) { - m_needParent = true; - m_acceptsFocus = true; - m_blockEvent = false; if (!PreCreation(parent, pos, size) || @@ -201,9 +195,6 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString &name) { - m_needParent = true; - m_acceptsFocus = true; - m_blockEvent = false; if (!PreCreation(parent, pos, size) ||