X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903f689bf7c3c379cba45881373aa9bdd15d6e70..befe54c6ca5d8f57be1d38f8826bdb080af29e89:/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 ); +} +