summaryrefslogtreecommitdiffstats
path: root/library/button.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-02 22:00:53 (GMT)
committerhobbs <hobbs>2002-09-02 22:00:53 (GMT)
commitc08fb932b2dfb648827eb09a3631db10ef7c6fd8 (patch)
treea9ec119ad7ea7c08c630e38e7d81a16610b6337d /library/button.tcl
parent835f6997b62b085592f08535901e1ed84c459d75 (diff)
downloadtk-c08fb932b2dfb648827eb09a3631db10ef7c6fd8.zip
tk-c08fb932b2dfb648827eb09a3631db10ef7c6fd8.tar.gz
tk-c08fb932b2dfb648827eb09a3631db10ef7c6fd8.tar.bz2
* library/button.tcl (::tk::ButtonLeave): correctly restore state
of button to normal for unix bindings. [Bug #597920]
Diffstat (limited to 'library/button.tcl')
-rw-r--r--library/button.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/button.tcl b/library/button.tcl
index 65971d8..928e2b1 100644
--- a/library/button.tcl
+++ b/library/button.tcl
@@ -4,7 +4,7 @@
# checkbutton, and radiobutton widgets and provides procedures
# that help in implementing those bindings.
#
-# RCS: @(#) $Id: button.tcl,v 1.15 2002/08/31 06:12:28 das Exp $
+# RCS: @(#) $Id: button.tcl,v 1.16 2002/09/02 22:00:53 hobbs Exp $
#
# Copyright (c) 1992-1994 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -342,7 +342,7 @@ proc ::tk::ButtonEnter {w} {
proc ::tk::ButtonLeave w {
variable ::tk::Priv
- if {[$w cget -state] eq "disabled"} {
+ if {[$w cget -state] ne "disabled"} {
$w configure -state normal
}