X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903f689bf7c3c379cba45881373aa9bdd15d6e70..c67daf87774c71ae9f73af9969008af220e52a11:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index c90cf57996..066c92a17a 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -93,3 +93,11 @@ void wxButton::SetLabel( const wxString &label ) gtk_label_set( g_label, GetLabel() ); } +void wxButton::Enable( bool enable ) +{ + wxControl::Enable( enable ); + GtkButton *bin = GTK_BUTTON( m_widget ); + GtkWidget *label = bin->child; + gtk_widget_set_sensitive( label, enable ); +} +