summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2019-09-02 13:19:20 (GMT)
committerKevin Walzer <kw@codebykevin.com>2019-09-02 13:19:20 (GMT)
commitb81ebcc5809b069440ecdced2f9ac3d14e1e017e (patch)
tree3463bb43cb8528d3ab70558924af6c5b0b5552ce /library
parentf2567bf666b8bd0210e2b7491e10838ae0278bfd (diff)
parent2413f540b4709f4ffade95c9ed42ac90ceced283 (diff)
downloadtk-b81ebcc5809b069440ecdced2f9ac3d14e1e017e.zip
tk-b81ebcc5809b069440ecdced2f9ac3d14e1e017e.tar.gz
tk-b81ebcc5809b069440ecdced2f9ac3d14e1e017e.tar.bz2
Merge in ae_cleanup branch; thanks to Marc Culler for patches to clean up Apple Event processing on app startup
Diffstat (limited to 'library')
-rw-r--r--library/tk.tcl19
1 files changed, 15 insertions, 4 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index f00b4f9..047ea63 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -685,13 +685,24 @@ if {[tk windowingsystem] eq "aqua"} {
}
}
-#register to send data to macOS Services
+
if {[tk windowingsystem] eq "aqua"} {
-proc ::tk::RegisterServiceWidget {w} {
- ::tk::mac::registerServiceWidget $w
- }
+ #register to send data to macOS Services
+ proc ::tk::RegisterServiceWidget {w} {
+ ::tk::mac::registerServiceWidget $w
+ }
+
+ #stub procedures to respond to "do script" Apple Events
+ proc ::tk::mac::DoScriptFile {file} {
+ source $file
+ }
+ proc ::tk::mac::DoScriptText {script} {
+ eval $script
+ }
}
+
+
# Run the Ttk themed widget set initialization
if {$::ttk::library ne ""} {
uplevel \#0 [list source $::ttk::library/ttk.tcl]