chiark / gitweb /
subproc
[chiark-tcl-applet.git] / example
diff --git a/example b/example
index 67977a9dbcf132e829219e255447360bbbe91dca..b719c50409dae9a48ce7b4e60c42ab5da791c125 100755 (executable)
--- a/example
+++ b/example
@@ -2,6 +2,7 @@
 # -*- Tcl -*-
 
 source applet.tcl
+source subproc.tcl
 
 #----- menu -----
 
@@ -17,7 +18,7 @@ foreach b {1 3} {
 #setimage ims
 #setimage ims
 
-applet::setup-tooltip
+applet::setup-tooltip { puts VIS } { puts INVIS }
 applet::tooltip-set "line\nanother"
 
 fconfigure stdout -buffering line
@@ -68,7 +69,7 @@ proc run-child {} {
     }
 
     set status none
-    set status [fork-then child-died {
+    set status [subproc::fork child-died {
        execl xacpi-simple [list -into [winfo id .i.i.b.c]]
     }]
     puts "FORKED $status"