X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b88a837ba75928cd3835a6b97ae2bf5ad983a6e..cd95f7e65c4e1ee61a5d90eb13687ff468cb13ad:/src/gtk/radiobox.cpp?ds=sidebyside diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index a0e73a219d..0f0c5350c7 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -14,18 +14,16 @@ #include "wx/radiobox.h" -#ifndef WX_PRECOMP - #include "wx/log.h" - #include "wx/frame.h" - #include "wx/dialog.h" -#endif - #if wxUSE_TOOLTIPS #include "wx/tooltip.h" #endif #include "wx/gtk/private.h" + #include +#if GTK_CHECK_VERSION(3,0,0) +#include +#endif //----------------------------------------------------------------------------- // wxGTKRadioButtonInfo @@ -428,8 +426,6 @@ void wxRadioBox::SetString(unsigned int item, const wxString& label) bool wxRadioBox::Enable( bool enable ) { - bool isEnabled = IsEnabled(); - if ( !wxControl::Enable( enable ) ) return false; @@ -444,10 +440,8 @@ bool wxRadioBox::Enable( bool enable ) node = node->GetNext(); } - if (!isEnabled && enable) - { + if (enable) GTKFixSensitivity(); - } return true; }