X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71ab7c15cbfa018a549691a4ec407334a2c0132..da5a641fc8a83c8b00ac157004f47e93dd08dcc8:/src/gtk/tglbtn.cpp diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index 450e37bec7..26f1061997 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -247,11 +247,11 @@ void wxToggleButton::SetValue(bool state) if (state == GetValue()) return; - GTKEnableEvents(); + GTKDisableEvents(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_widget), state); - GTKDisableEvents(); + GTKEnableEvents(); } // bool GetValue() const