]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
Added (untested) support for sub-locales.
[wxWidgets.git] / src / gtk / checkbox.cpp
index daafd5f43ffc5c51f5ea023c3a2d4471502aaf2f..85425761d04dd7aa896f47ae64d22f69b533377a 100644 (file)
@@ -14,6 +14,9 @@
 
 #include "wx/checkbox.h"
 
+#include "gdk/gdk.h"
+#include "gtk/gtk.h"
+
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
@@ -97,6 +100,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 );