diff options
author | fvogel <fvogelnew1@free.fr> | 2020-11-12 22:28:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-11-12 22:28:12 (GMT) |
commit | ed63f3857794bdc13b590126181b03e1db44f413 (patch) | |
tree | 0ee6fcbb8b97b2a696d93d8d78f0312fddf29a40 /library | |
parent | 84cce103451d9fb4edb519c8c2455350c4d83d66 (diff) | |
download | tk-ed63f3857794bdc13b590126181b03e1db44f413.zip tk-ed63f3857794bdc13b590126181b03e1db44f413.tar.gz tk-ed63f3857794bdc13b590126181b03e1db44f413.tar.bz2 |
Fix 'tk sysnotify' for Windows.
Diffstat (limited to 'library')
-rw-r--r-- | library/systray.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/systray.tcl b/library/systray.tcl index 5875757..4608776 100644 --- a/library/systray.tcl +++ b/library/systray.tcl @@ -251,7 +251,7 @@ proc ::tk::systray::destroy {} { variable _ico if {!$_created} { - return -code error "systray not created" + return -code error -errorcode {TK SYSTRAY DESTROY} "systray not created" } switch -- [tk windowingsystem] { "win32" { @@ -300,10 +300,10 @@ proc ::tk::sysnotify {title message} { switch -- [tk windowingsystem] { "win32" { - if {$::winicoprops::ico eq ""} { - error "Must create a system tray icon with the \"tk systray\" command first" + if {!$::tk::systray::_created} { + error "must create a system tray icon with the \"tk systray\" command first" } - _sysnotify notify $::winicoprops::ico $title $message + _sysnotify notify $::tk::systray::_ico $title $message } "x11" { if {[info commands _sysnotify] eq ""} { |