X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b292e2f512fa9b25e2d2928604ab884b00e6c6bf..7e616b1050e4aaa4b8468d82ddf5b85d46412a3c:/src/gtk/checkbox.cpp diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index daafd5f43f..9d594ca495 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -97,6 +97,11 @@ void wxCheckBox::SetValue( bool state ) { wxCHECK_RET( m_widget != NULL, "invalid checkbox" ); + if ( state == GetValue() ) + return; + + // for compatibility with wxMSW don't send notification when the check box + // state is changed programmatically m_blockFirstEvent = TRUE; gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_widget), state );