slitaz-tools rev 36

Small change to burnbox and --center subox
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jan 14 13:21:48 2008 +0100 (2008-01-14)
parents c6f9e94f263b
children c1064e88ccb1
files tinyutils/burnbox tinyutils/subox
line diff
     1.1 --- a/tinyutils/burnbox	Sun Jan 13 22:02:50 2008 +0100
     1.2 +++ b/tinyutils/burnbox	Mon Jan 14 13:21:48 2008 +0100
     1.3 @@ -9,20 +9,20 @@
     1.4  # ISO burning and exit when finished.
     1.5  #
     1.6  export BURN_DIALOG='
     1.7 -<vbox>
     1.8 -    <text>
     1.9 -      <label>Burning ISO image</label>
    1.10 +  <vbox>
    1.11 +    <text use-markup="true" width-chars="28">
    1.12 +      <label>
    1.13 +"
    1.14 +<b>Burnbox working</b>
    1.15 +"
    1.16 +      </label>
    1.17      </text>
    1.18      <progressbar>
    1.19        <label>Please wait...</label>
    1.20 -      <input>for i in $(seq 0 10 100); do echo $i; sleep 1; done</input>
    1.21 -      <action>wodim speed=$SPEED dev=$DEVICE $OPTIONS $ISO_IMAGE</action>
    1.22 -      <action type="exit">Ready</action>
    1.23 +      <input>for i in 15 30 45; do echo $i; sleep 1; done; echo "Burning ISO..."; wodim speed=$SPEED dev=$DEVICE $OPTIONS $ISO_IMAGE >/dev/null; echo "Done..."; for i in 60 75 90; do echo $i; sleep 1; done; echo 100</input>
    1.24 +      <action type="exit">Burned</action>
    1.25      </progressbar>
    1.26 -  <hbox>
    1.27 -   <button cancel></button>
    1.28 -  </hbox>
    1.29 - </vbox>
    1.30 +  </vbox>
    1.31  '
    1.32  
    1.33  # We need at least devive, speed and ISO image path.
    1.34 @@ -63,6 +63,7 @@
    1.35      </text>
    1.36      <entry>
    1.37        <input>cat /proc/sys/dev/cdrom/info | grep "drive speed" | cut -f 3</input>
    1.38 +      <variable>SPEED</variable>
    1.39      </entry>
    1.40    </hbox>
    1.41    <hbox>
    1.42 @@ -85,7 +86,7 @@
    1.43          <variable>ISO_IMAGE</variable>
    1.44        </entry>
    1.45        <button>
    1.46 -        <input file stock="gtk-open"></input>
    1.47 +        <input file stock="gtk-cdrom"></input>
    1.48          <action type="fileselect">ISO_IMAGE</action>
    1.49        </button>
    1.50      </hbox>
     2.1 --- a/tinyutils/subox	Sun Jan 13 22:02:50 2008 +0100
     2.2 +++ b/tinyutils/subox	Mon Jan 14 13:21:48 2008 +0100
     2.3 @@ -56,4 +56,4 @@
     2.4    </vbox>
     2.5  '
     2.6  
     2.7 -gtkdialog --program=SU_DIALOG
     2.8 +gtkdialog --center --program=SU_DIALOG