]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
Allow wxPGMultiButton to work even if primary editor control was not created in wxPGE...
[wxWidgets.git] / src / gtk / checkbox.cpp
index 83a09934100fc333abcc400c245577fa0e5bf872..17c3ff9548378cbcd8bf29a216069e6ca55263cf 100644 (file)
@@ -217,11 +217,18 @@ void wxCheckBox::SetLabel( const wxString& label )
 
 bool wxCheckBox::Enable( bool enable )
 {
+    bool isEnabled = IsEnabled();
+
     if ( !wxControl::Enable( enable ) )
         return false;
 
     gtk_widget_set_sensitive( m_widgetLabel, enable );
 
+    if (!isEnabled && enable)
+    {
+        GTKFixSensitivity();
+    }
+
     return true;
 }