summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-06-04 17:18:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-06-04 17:18:27 (GMT)
commita0d9703131628d169c2b9abcc842d058a3899a91 (patch)
tree832dbdfebddecaa689090bd446570a42c5873077 /library
parent399eacbc0271601773bf04e62ef4bd9a2d13033f (diff)
parent3813048adc609662006a24942ac3f05c76f6ae79 (diff)
downloadtk-a0d9703131628d169c2b9abcc842d058a3899a91.zip
tk-a0d9703131628d169c2b9abcc842d058a3899a91.tar.gz
tk-a0d9703131628d169c2b9abcc842d058a3899a91.tar.bz2
Merge implementation of TIP #658 - Attach identifiers to Tk menu entries, following positive vote from the TCT. Thanks to the author, Schelte Bron!
Diffstat (limited to 'library')
-rw-r--r--library/tearoff.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/tearoff.tcl b/library/tearoff.tcl
index 856f8a2..63d4f43 100644
--- a/library/tearoff.tcl
+++ b/library/tearoff.tcl
@@ -140,7 +140,7 @@ proc ::tk::MenuDup {src dst type} {
set last [$src index last]
if {$last >= 0} {
for {set i [$src cget -tearoff]} {$i <= $last} {incr i} {
- set cmd [list $dst add [$src type $i]]
+ set cmd [list $dst add [$src type $i] [$src id $i]]
foreach option [$src entryconfigure $i] {
lappend cmd [lindex $option 0] [lindex $option 4]
}