Wrong order of calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-10-06 11:01:17 +00:00
parent 8cc0450796
commit 5e53c1c21e

View File

@@ -247,11 +247,11 @@ void wxToggleButton::SetValue(bool state)
if (state == GetValue()) if (state == GetValue())
return; return;
GTKEnableEvents(); GTKDisableEvents();
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_widget), state); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_widget), state);
GTKDisableEvents(); GTKEnableEvents();
} }
// bool GetValue() const // bool GetValue() const