}
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 )
{
- if ( !wxControl::Enable( enable ) )
+ if (!base_type::Enable(enable))
return false;
gtk_widget_set_sensitive( m_widgetLabel, enable );
+ if (enable)
+ GTKFixSensitivity();
+
return true;
}
return GTK_BUTTON(m_widgetCheckbox)->event_window;
}
-wxSize wxCheckBox::DoGetBestSize() const
-{
- return wxControl::DoGetBestSize();
-}
-
// static
wxVisualAttributes
wxCheckBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))