diff options
author | fvogel <fvogelnew1@free.fr> | 2020-11-10 23:13:57 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-11-10 23:13:57 (GMT) |
commit | 34cb43b947c0df8cbb5dc1549f5d1b9cc6979b87 (patch) | |
tree | b389772f0de7474a4f9791143da4ee44e7946164 /library/systray.tcl | |
parent | 362f0ca322bf61c8ec447cbeefed8c73ae96d358 (diff) | |
download | tk-34cb43b947c0df8cbb5dc1549f5d1b9cc6979b87.zip tk-34cb43b947c0df8cbb5dc1549f5d1b9cc6979b87.tar.gz tk-34cb43b947c0df8cbb5dc1549f5d1b9cc6979b87.tar.bz2 |
Fix the implementation so that test sysnotify-2.1 now passes.
Diffstat (limited to 'library/systray.tcl')
-rw-r--r-- | library/systray.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/systray.tcl b/library/systray.tcl index 2ce08f1..2ad579d 100644 --- a/library/systray.tcl +++ b/library/systray.tcl @@ -172,6 +172,7 @@ proc ::tk::systray {args} { "win32" { set _iconlist {} _systray taskbar delete $::winicoprops::ico + set ::winicoprops::ico "" } "x11" { destroy ._tray @@ -206,7 +207,7 @@ proc ::tk::systray {args} { error "Only one system tray icon supported per interpeter" } set ::winicoprops::ico [_systray createfrom $_img] - _systray taskbar add $::winicoprops::ico -text $::winicoprops::txt -callback [list _win_callback %m %i] + _systray taskbar add $::winicoprops::ico -text $::winicoprops::txt -callback [list _win_callback %m %i] lappend _iconlist "ico#[llength _iconlist]" } "x11" { @@ -301,7 +302,7 @@ proc ::tk::systray {args} { } if {[tk windowingsystem] eq "win32"} { if {$::winicoprops::ico ne ""} { - bind . <Destroy> {catch {_systray taskbar delete $::winicoprops::ico}} + bind . <Destroy> {catch {_systray taskbar delete $::winicoprops::ico ; set ::winicoprops::ico ""}} } } } |