summaryrefslogtreecommitdiffstats
path: root/library/tearoff.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-06 02:22:24 (GMT)
committerhobbs <hobbs>2000-01-06 02:22:24 (GMT)
commitf56e033eeeeef36def67329d2f3d67f1ef06483b (patch)
treef460bc9e6b6a8136f9c788b897f75dbcfcceca71 /library/tearoff.tcl
parent0bcb96bc6cddb09417aaa0ca4ad48469d0194255 (diff)
downloadtk-f56e033eeeeef36def67329d2f3d67f1ef06483b.zip
tk-f56e033eeeeef36def67329d2f3d67f1ef06483b.tar.gz
tk-f56e033eeeeef36def67329d2f3d67f1ef06483b.tar.bz2
* library/entry.tcl:
* library/focus.tcl: * library/listbox.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl: fixed unprotected arg parsing through eval/after [Bug: 3943]
Diffstat (limited to 'library/tearoff.tcl')
-rw-r--r--library/tearoff.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/tearoff.tcl b/library/tearoff.tcl
index c9e3231..7844057 100644
--- a/library/tearoff.tcl
+++ b/library/tearoff.tcl
@@ -2,7 +2,7 @@
#
# This file contains procedures that implement tear-off menus.
#
-# RCS: @(#) $Id: tearoff.tcl,v 1.5 1999/09/02 17:02:53 hobbs Exp $
+# RCS: @(#) $Id: tearoff.tcl,v 1.6 2000/01/06 02:22:24 hobbs Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -93,7 +93,7 @@ proc tkTearOffMenu {w {x 0} {y 0}} {
set cmd [$w cget -tearoffcommand]
if {[string compare $cmd ""]} {
- uplevel #0 $cmd $w $menu
+ uplevel #0 $cmd [list $w $menu]
}
return $menu
}