]> git.saurik.com Git - wxWidgets.git/commitdiff
Wrong order of calls
authorRobert Roebling <robert@roebling.de>
Mon, 6 Oct 2008 11:01:17 +0000 (11:01 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 6 Oct 2008 11:01:17 +0000 (11:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/tglbtn.cpp

index 450e37bec78a2eb5942c547b08409fa29511b90f..26f10619975af95e2a0b66ea81b59246d2a7c2b9 100644 (file)
@@ -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