chiark / gitweb /
orientation-related changes, found
[chiark-tcl-applet.git] / example
diff --git a/example b/example
index 6d3eb65a9452bc9620570f290060b256c2c048a8..2d07e86d135c6cb5a952452febc8c9f1af4c86e0 100755 (executable)
--- a/example
+++ b/example
@@ -6,8 +6,9 @@
 
 source applet.tcl
 source subproc.tcl
+source utils.tcl
 
-applet::setup-debug puts
+set debug::debug puts
 
 foreach b {1 3} {
     applet::setup-button-menu $b
@@ -25,7 +26,8 @@ applet::setup-tooltip { puts VIS } { puts INVIS }
 applet::tooltip-set "line\nanother"
 
 proc cmdline {id orientation} {
-    return [list xacpi-simple -into $id]
+    global argv
+    return [concat $argv $id]
 }
 
 applet::setup-subproc cmdline