slitaz-tools rev 721
tazbox: add notify to usage and use custom ison om $3
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 24 14:34:32 2012 +0100 (2012-03-24) |
parents | 82b6aad6c17b |
children | c3e50a435aaf |
files | rootfs/usr/share/applications/slitaz-logout.desktop rootfs/usr/share/pixmaps/logout.png rootfs/usr/share/pixmaps/passwd.png rootfs/usr/share/pixmaps/slitaz-logout.png tazbox/tazbox |
line diff
1.1 --- a/rootfs/usr/share/applications/slitaz-logout.desktop Sat Mar 24 13:58:29 2012 +0100 1.2 +++ b/rootfs/usr/share/applications/slitaz-logout.desktop Sat Mar 24 14:34:32 2012 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 [Desktop Entry] 1.5 Type=Application 1.6 Exec=tazbox logout 1.7 -Icon=logout 1.8 +Icon=slitaz-logout 1.9 StartupNotify=false 1.10 Terminal=false 1.11 Name=Log Out
2.1 Binary file rootfs/usr/share/pixmaps/logout.png has changed
3.1 Binary file rootfs/usr/share/pixmaps/passwd.png has changed
4.1 Binary file rootfs/usr/share/pixmaps/slitaz-logout.png has changed
5.1 --- a/tazbox/tazbox Sat Mar 24 13:58:29 2012 +0100 5.2 +++ b/tazbox/tazbox Sat Mar 24 14:34:32 2012 +0100 5.3 @@ -46,6 +46,7 @@ 5.4 setup $(gettext "System initial setup (locale, keymap & timezone)") 5.5 new-file $(gettext "Create a new file or folder on the desktop") 5.6 all-apps $(gettext "Display icons of all installed applications") 5.7 + notify $(gettext "Notify user with a desktop centered box") 5.8 5.9 EOT 5.10 } 5.11 @@ -331,10 +332,12 @@ 5.12 all_apps ;; 5.13 notify|-n) 5.14 # On screen notification box. 5.15 - time="$3" 5.16 + icon="$3" 5.17 + time="$4" 5.18 + [ "$icon" ] || icon=info 5.19 [ "$time" ] || time=4 5.20 yad --text="<b>$2</b>" --width=520 --height=80 \ 5.21 - --center --on-top --image=info --image-on-top \ 5.22 + --center --on-top --image=$icon --image-on-top \ 5.23 --timeout=$time --skip-taskbar --no-buttons \ 5.24 --borders=12 --undecorated ;; 5.25 *)