summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-10-03 00:40:45 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-10-03 00:40:45 (GMT)
commitbdefd8ad1c545bc52fae9f1dcc7331716597c107 (patch)
tree5ddbca09e96dfa69c5a4648be038d24c9f2c083a
parent585127a604dc7a5e1ea93742e9833ef869d0acd0 (diff)
downloadtk-bdefd8ad1c545bc52fae9f1dcc7331716597c107.zip
tk-bdefd8ad1c545bc52fae9f1dcc7331716597c107.tar.gz
tk-bdefd8ad1c545bc52fae9f1dcc7331716597c107.tar.bz2
* library/scale.tcl: Clear bug with chording mouse buttons.
-rw-r--r--ChangeLog2
-rw-r--r--library/scale.tcl8
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e69c11..85f6888 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2003-10-03 Pat Thoyts <patthoyts@users.sourceforge.net>
+ * library/scale.tcl: Clear bug with chording mouse buttons.
+
* library/console.tcl: Avoid including the console in the list
of interpreters exposed by [winfo interps].
diff --git a/library/scale.tcl b/library/scale.tcl
index c704601..ce68b98 100644
--- a/library/scale.tcl
+++ b/library/scale.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk scale widgets and provides
# procedures that help in implementing the bindings.
#
-# RCS: @(#) $Id: scale.tcl,v 1.11 2003/08/13 10:28:21 patthoyts Exp $
+# RCS: @(#) $Id: scale.tcl,v 1.12 2003/10/03 00:40:45 patthoyts Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
@@ -188,8 +188,10 @@ proc ::tk::ScaleDrag {w x y} {
proc ::tk::ScaleEndDrag {w} {
variable ::tk::Priv
set Priv(dragging) 0
- $w configure -sliderrelief $Priv($w,relief)
- unset Priv($w,relief)
+ if {[info exists Priv($w,relief)]} {
+ $w configure -sliderrelief $Priv($w,relief)
+ unset Priv($w,relief)
+ }
}
# ::tk::ScaleIncrement --