X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9a7fde5683162aeeb76a364456b10b9f7c8c555..7f37eded21431a8464cf4b59a39667ded9e5fc09:/src/gtk/radiobut.cpp diff --git a/src/gtk/radiobut.cpp b/src/gtk/radiobut.cpp index 93e92becbb..f465958df1 100644 --- a/src/gtk/radiobut.cpp +++ b/src/gtk/radiobut.cpp @@ -47,8 +47,6 @@ void gtk_radiobutton_clicked_callback( GtkToggleButton *button, wxRadioButton *r // wxRadioButton //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl) - bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& label, @@ -138,11 +136,14 @@ bool wxRadioButton::GetValue() const bool wxRadioButton::Enable( bool enable ) { - if ( !wxControl::Enable( enable ) ) + if (!base_type::Enable(enable)) return false; gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable); + if (enable) + GTKFixSensitivity(); + return true; }