X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4b0832d7255f2f4651216a8a06dc6f0cba2f7f9..17547f0fe9c3084c35ed82feb36a07951bd161a5:/src/gtk/button.cpp?ds=sidebyside diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index fabe9a234f..066183e717 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -211,16 +211,23 @@ void wxButton::SetLabel( const wxString &lbl ) gtk_button_set_label(GTK_BUTTON(m_widget), wxGTK_CONV(labelGTK)); gtk_button_set_use_stock(GTK_BUTTON(m_widget), FALSE); - ApplyWidgetStyle( false ); + GTKApplyWidgetStyle( false ); } bool wxButton::Enable( bool enable ) { + bool isEnabled = IsEnabled(); + if ( !wxControl::Enable( enable ) ) return false; gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable); + if (!isEnabled && enable) + { + GTKFixSensitivity(); + } + return true; }