Workaround for GTK+ sensitivity bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-01-18 12:34:23 +00:00
parent 150ac0dae3
commit ad60f9e7b6
10 changed files with 89 additions and 0 deletions

View 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;
}