chiark / gitweb /
adjust default
[chiark-tcl-applet.git] / example
diff --git a/example b/example
index 4edb4041a650e919ba539d0987e2bb3ea371c067..0321c6babae35b53ff2af8b6d7d7a17cdd6e46c2 100755 (executable)
--- a/example
+++ b/example
@@ -4,7 +4,7 @@
 source applet.tcl
 source subproc.tcl
 
-#----- menu -----
+applet::setup-debug puts
 
 foreach b {1 3} {
     applet::setup-button-menu $b
@@ -21,8 +21,8 @@ foreach b {1 3} {
 applet::setup-tooltip { puts VIS } { puts INVIS }
 applet::tooltip-set "line\nanother"
 
-proc cmdline {id} {
+proc cmdline {id orientation} {
     return [list xacpi-simple -into $id]
 }
 
-applet::setup-subproc 40 darkblue 1 cmdline
+applet::setup-subproc 40 40 horizontal darkblue 1 cmdline