summaryrefslogtreecommitdiffstats
path: root/library/scale.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2006-03-17 11:13:13 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2006-03-17 11:13:13 (GMT)
commitf04aa73019b758db9a04fc8a5a8cde258e1c3535 (patch)
tree40cd21e974be96a8dfc98df93348ce5ccdb673d9 /library/scale.tcl
parent58c3d258aa0068b5b91068e0ecbdb648e279f362 (diff)
downloadtk-f04aa73019b758db9a04fc8a5a8cde258e1c3535.zip
tk-f04aa73019b758db9a04fc8a5a8cde258e1c3535.tar.gz
tk-f04aa73019b758db9a04fc8a5a8cde258e1c3535.tar.bz2
bug #1451587: avoid using abbreviated sub-commands in
core scripts as this can cause problems with mega-widget libraries like snit.
Diffstat (limited to 'library/scale.tcl')
-rw-r--r--library/scale.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/scale.tcl b/library/scale.tcl
index 01138d3..9f8f110 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.13 2005/07/25 09:06:00 dkf Exp $
+# RCS: @(#) $Id: scale.tcl,v 1.14 2006/03/17 11:13:15 patthoyts Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
@@ -21,7 +21,7 @@
bind Scale <Enter> {
if {$tk_strictMotif} {
set tk::Priv(activeBg) [%W cget -activebackground]
- %W config -activebackground [%W cget -background]
+ %W configure -activebackground [%W cget -background]
}
tk::ScaleActivate %W %x %y
}
@@ -30,7 +30,7 @@ bind Scale <Motion> {
}
bind Scale <Leave> {
if {$tk_strictMotif} {
- %W config -activebackground $tk::Priv(activeBg)
+ %W configure -activebackground $tk::Priv(activeBg)
}
if {[%W cget -state] eq "active"} {
%W configure -state normal