X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/868a28262c40a7428d3991ca8a034674814bdb0a..fd2daa68f4e2d0f66f466be4dcee7bad9ed4be1a:/src/gtk/checkbox.cpp?ds=inline diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 2604d6d360..d710aa4fcf 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -89,9 +89,20 @@ bool wxCheckBox::GetValue(void) const return tb->active; } +void wxCheckBox::Enable( bool enable ) +{ + wxControl::Enable( enable ); + GtkButton *bin = GTK_BUTTON( m_widget ); + GtkWidget *label = bin->child; + gtk_widget_set_sensitive( label, enable ); +} + void wxCheckBox::SetFont( const wxFont &font ) { - m_font = font; + if (((wxFont*)&font)->Ok()) + m_font = font; + else + m_font = *wxSWISS_FONT; GtkButton *bin = GTK_BUTTON( m_widget ); GtkWidget *label = bin->child;