]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
Re-enable generation of wxEVT_MOVE_{START,END} events under wxMSW.
[wxWidgets.git] / src / gtk / radiobox.cpp
index a0e73a219d71ed668a47f6ed9b7b20435782d753..3467b72318a8d242c59a48e90a92bcf2b19d9ff6 100644 (file)
 
 #include "wx/radiobox.h"
 
-#ifndef WX_PRECOMP
-    #include "wx/log.h"
-    #include "wx/frame.h"
-    #include "wx/dialog.h"
-#endif
-
 #if wxUSE_TOOLTIPS
     #include "wx/tooltip.h"
 #endif
@@ -428,8 +422,6 @@ void wxRadioBox::SetString(unsigned int item, const wxString& label)
 
 bool wxRadioBox::Enable( bool enable )
 {
-    bool isEnabled = IsEnabled();
-
     if ( !wxControl::Enable( enable ) )
         return false;
 
@@ -444,10 +436,8 @@ bool wxRadioBox::Enable( bool enable )
         node = node->GetNext();
     }
 
-    if (!isEnabled && enable)
-    {
+    if (enable)
         GTKFixSensitivity();
-    }
 
     return true;
 }