}
else
{
- wxFAIL_MSG(_T("3state wxCheckBox in unexpected state!"));
+ wxFAIL_MSG(wxT("3state wxCheckBox in unexpected state!"));
}
cb->GTKEnableEvents();
if (state == GetValue())
return;
-
+
GTKDisableEvents();
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(m_widgetCheckbox), state );
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;
}