slitaz-tools diff tinyutils/tazdialog @ rev 195
Added tag 2.4 for changeset 2b9d7c28e30a
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 16 00:57:36 2008 +0200 (2008-05-16) |
parents | 92aedc898747 |
children | 39e31613e665 |
line diff
1.1 --- a/tinyutils/tazdialog Wed May 14 13:52:28 2008 +0000 1.2 +++ b/tinyutils/tazdialog Fri May 16 00:57:36 2008 +0200 1.3 @@ -21,7 +21,7 @@ 1.4 backtitle="" 1.5 lines="10" 1.6 cols="10" 1.7 - [ -n "$ICON" ] || ICON="media-flash" 1.8 + [ -n "$ICON" ] || ICON="applications-other" 1.9 buttonok="" 1.10 buttoncancel="" 1.11 buttonextra="" 1.12 @@ -45,7 +45,7 @@ 1.13 --yes-label) yeslabel="$2"; shift 2;; 1.14 --no-label) nolabel="$2"; shift 2;; 1.15 --extra-label) extralabel="$2"; shift 2;; 1.16 - --extra-button) buttonextra="1"; shift;; 1.17 + --extra-button) buttonextra="1"; shift;; 1.18 --help-button) buttonhelp="1"; shift;; 1.19 --msgbox) msgbox="$2"; lines="$3"; cols="$4" 1.20 buttonok="1"; break;; 1.21 @@ -57,7 +57,7 @@ 1.22 default="$5" 1.23 buttonok="1"; buttoncancel="1" 1.24 inputbox="1"; break;; 1.25 - 1.26 + 1.27 --checklist) msgbox="$2"; lines="$3"; cols="$4"; inlines="$5" 1.28 buttonok="1"; checklist="1"; shift 5; args="$@"; break;; 1.29 --menu) msgbox="$2"; lines="$3"; cols="$4"; inlines="$5" 1.30 @@ -75,8 +75,8 @@ 1.31 [ -n "$backtitle" ] && BOX="$BOX title=\"$backtitle\"" 1.32 [ -n "$ICON" ] && BOX="$BOX icon-name=\"$ICON\"" 1.33 BOX="$BOX> <vbox>" 1.34 -[ -n "$title" ] && BOX="$BOX <text use-markup=\"true\"> \ 1.35 -<label> \"<b>$title</b>\" </label> </text>" 1.36 +[ -n "$title" ] && BOX="$BOX <text use-markup=\"true\" width-chars=\"44\"> \ 1.37 +<label>\"<b>$title</b>\" </label> </text>" 1.38 #[ -n "$msgbox" ] && BOX="$BOX <text wrap=\"true\" \ 1.39 #width-chars=\"$cols\" use-markup=\"true\"><label> \"$msgbox\" </label></text>" 1.40 [ -n "$msgbox" ] && BOX="$BOX <text wrap=\"true\" \