X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b292e2f512fa9b25e2d2928604ab884b00e6c6bf..a4388683f1b20020b5425c59c401d6ab673860de:/src/gtk1/checkbox.cpp diff --git a/src/gtk1/checkbox.cpp b/src/gtk1/checkbox.cpp index daafd5f43f..9d594ca495 100644 --- a/src/gtk1/checkbox.cpp +++ b/src/gtk1/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 );