# HG changeset patch # User Christophe Lincoln # Date 1332596072 -3600 # Node ID 9f5eff564b55c001f343c5b5e2c4e5dec89c3806 # Parent 82b6aad6c17bdde2d8964b0c962a6e41f5d8150e tazbox: add notify to usage and use custom ison om $3 diff -r 82b6aad6c17b -r 9f5eff564b55 rootfs/usr/share/applications/slitaz-logout.desktop --- a/rootfs/usr/share/applications/slitaz-logout.desktop Sat Mar 24 13:58:29 2012 +0100 +++ b/rootfs/usr/share/applications/slitaz-logout.desktop Sat Mar 24 14:34:32 2012 +0100 @@ -1,7 +1,7 @@ [Desktop Entry] Type=Application Exec=tazbox logout -Icon=logout +Icon=slitaz-logout StartupNotify=false Terminal=false Name=Log Out diff -r 82b6aad6c17b -r 9f5eff564b55 rootfs/usr/share/pixmaps/logout.png Binary file rootfs/usr/share/pixmaps/logout.png has changed diff -r 82b6aad6c17b -r 9f5eff564b55 rootfs/usr/share/pixmaps/passwd.png Binary file rootfs/usr/share/pixmaps/passwd.png has changed diff -r 82b6aad6c17b -r 9f5eff564b55 rootfs/usr/share/pixmaps/slitaz-logout.png Binary file rootfs/usr/share/pixmaps/slitaz-logout.png has changed diff -r 82b6aad6c17b -r 9f5eff564b55 tazbox/tazbox --- a/tazbox/tazbox Sat Mar 24 13:58:29 2012 +0100 +++ b/tazbox/tazbox Sat Mar 24 14:34:32 2012 +0100 @@ -46,6 +46,7 @@ setup $(gettext "System initial setup (locale, keymap & timezone)") new-file $(gettext "Create a new file or folder on the desktop") all-apps $(gettext "Display icons of all installed applications") + notify $(gettext "Notify user with a desktop centered box") EOT } @@ -331,10 +332,12 @@ all_apps ;; notify|-n) # On screen notification box. - time="$3" + icon="$3" + time="$4" + [ "$icon" ] || icon=info [ "$time" ] || time=4 yad --text="$2" --width=520 --height=80 \ - --center --on-top --image=info --image-on-top \ + --center --on-top --image=$icon --image-on-top \ --timeout=$time --skip-taskbar --no-buttons \ --borders=12 --undecorated ;; *)