summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2021-05-21 01:38:51 (GMT)
committerKevin Walzer <kw@codebykevin.com>2021-05-21 01:38:51 (GMT)
commit5f966b7f24725eb6e42da2434c68b1634827109d (patch)
tree2a766c5ded106c87dd8e92163c23ec80d66fd729 /library
parentbb14ba3ef7fe81e4c081f2423eac415d226a44b4 (diff)
downloadtk-5f966b7f24725eb6e42da2434c68b1634827109d.zip
tk-5f966b7f24725eb6e42da2434c68b1634827109d.tar.gz
tk-5f966b7f24725eb6e42da2434c68b1634827109d.tar.bz2
Fix for a0bc2524; thanks to Emiliano Gavilan for the patch
Diffstat (limited to 'library')
-rw-r--r--library/systray.tcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/systray.tcl b/library/systray.tcl
index 01108cf..931d6a8 100644
--- a/library/systray.tcl
+++ b/library/systray.tcl
@@ -323,7 +323,6 @@ proc ::tk::sysnotify::sysnotify {title message} {
#Add these commands to the tk command ensemble: tk systray, tk sysnotify
#Thanks to Christian Gollwitzer for the guidance here
-set map [namespace ensemble configure tk -map]
-dict set map systray ::tk::systray
-dict set map sysnotify ::tk::sysnotify::sysnotify
-namespace ensemble configure tk -map $map
+namespace ensemble configure tk -map \
+ [dict merge [namespace ensemble configure tk -map] \
+ {systray ::tk::systray sysnotify ::tk::sysnotify::sysnotify}]