]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/radiobut.cpp
Made wxGTK dataobj.cpp compile; removed flashing from wxGLCanvas samples;
[wxWidgets.git] / src / gtk1 / radiobut.cpp
index bc2156d09455e22cf89ec8d676759c790c52bf36..abf7ac99f298ec6cd79ce5850d3db2e60c96f7c8 100644 (file)
@@ -13,6 +13,8 @@
 #endif
 
 #include "wx/radiobut.h"
+#include "gdk/gdk.h"
+#include "gtk/gtk.h"
 
 //-----------------------------------------------------------------------------
 // data
@@ -108,6 +110,9 @@ void wxRadioButton::SetValue( bool val )
 {
     wxCHECK_RET( m_widget != NULL, "invalid radiobutton" );
   
+    if ( val == GetValue() )
+        return;
+
     m_blockFirstEvent = TRUE;
   
     if (val)