diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-26 20:05:29 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-26 20:05:29 (GMT) |
commit | 1007e88c9bdb14200d0121e9e91982e850b9a4d6 (patch) | |
tree | 80f5dfc7c2c84fd923d844b70e41cfc32a685535 /library | |
parent | fa4ca6688525f9fa086f18e7ed587757d70c01b1 (diff) | |
parent | 0eb6496a31cdc5e9b0e89a0a986c83cf856ef5c4 (diff) | |
download | tk-1007e88c9bdb14200d0121e9e91982e850b9a4d6.zip tk-1007e88c9bdb14200d0121e9e91982e850b9a4d6.tar.gz tk-1007e88c9bdb14200d0121e9e91982e850b9a4d6.tar.bz2 |
[92ab429295]: Add new subcommand [tk systray exists] to [tk systray]. Patch from Emiliano Gavilan.
Diffstat (limited to 'library')
-rw-r--r-- | library/systray.tcl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/library/systray.tcl b/library/systray.tcl index ada0721..66bf460 100644 --- a/library/systray.tcl +++ b/library/systray.tcl @@ -110,7 +110,7 @@ namespace eval ::tk::systray { } } - namespace export create configure destroy + namespace export create configure destroy exists namespace ensemble create } @@ -393,7 +393,6 @@ proc ::tk::systray::configure {args} { } } - # Remove the systray icon. proc ::tk::systray::destroy {} { variable _created @@ -420,6 +419,12 @@ proc ::tk::systray::destroy {} { return } +# Check systray icon existence. +proc tk::systray::exists {} { + variable _created + return $_created +} + # Check systray options proc ::tk::systray::_check_options {argsList singleOk} { variable _options |