X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/496e7ec6475277246a75bcec98a6ddd5ca4cde84..fd423a0f8f20cb494a8d19b8a222d70f5c261b93:/src/gtk/tglbtn.cpp diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index 503382712c..e0bfe0e372 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -7,7 +7,7 @@ // Created: 08.02.01 // RCS-ID: $Id$ // Copyright: (c) 2000 Johnny C. Norris II -// License: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx.h". @@ -285,17 +285,13 @@ void wxToggleButton::SetLabel(const wxString& label) bool wxToggleButton::Enable(bool enable /*=true*/) { - bool isEnabled = IsEnabled(); - - if (!wxControl::Enable(enable)) + if (!base_type::Enable(enable)) return false; gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable); - if (!isEnabled && enable) - { + if (enable) GTKFixSensitivity(); - } return true; }