]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/checkbox.cpp
added directories for Motif headers and libs under Solaris to the search path
[wxWidgets.git] / src / gtk1 / checkbox.cpp
index daafd5f43ffc5c51f5ea023c3a2d4471502aaf2f..9d594ca4951961223392b2431949f77061a6458f 100644 (file)
@@ -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 );