From 5e53c1c21e1241487f62737f0d442277d1c8d872 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 6 Oct 2008 11:01:17 +0000 Subject: [PATCH] Wrong order of calls git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/tglbtn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2