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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user