X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4b0832d7255f2f4651216a8a06dc6f0cba2f7f9..9b66a1d31a32e9235792261db6ff755ce26ab5c1:/src/gtk/button.cpp diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index fabe9a234f..086159189a 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -216,11 +216,18 @@ void wxButton::SetLabel( const wxString &lbl ) 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; }