tazpkg rev 560 4.9

small fixes to notify and box
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 02 15:53:46 2012 +0100 (2012-03-02)
parents 77aa214f15ca
children 58ae5dad09d1
files tazpkg-box tazpkg-notify
line diff
     1.1 --- a/tazpkg-box	Fri Mar 02 15:21:55 2012 +0100
     1.2 +++ b/tazpkg-box	Fri Mar 02 15:53:46 2012 +0100
     1.3 @@ -49,7 +49,6 @@
     1.4  		yad --text-info \
     1.5  			--width=480 --height=260 --center --on-top \
     1.6  			--title="TazPKG" --window-icon=$icon \
     1.7 -			--fore="#ffffff" --back="#000000" --wrap \
     1.8  			--margins=4 --button="gtk-close:0" ;;
     1.9  	actions)
    1.10  		pkg=$(basename $2)
     2.1 --- a/tazpkg-notify	Fri Mar 02 15:21:55 2012 +0100
     2.2 +++ b/tazpkg-notify	Fri Mar 02 15:53:46 2012 +0100
     2.3 @@ -23,6 +23,7 @@
     2.4  doc="/usr/share/doc/tazpkg/tazpkg.html"
     2.5  installed=$(ls $db/installed | wc -l)
     2.6  text="$(gettext "Installed packages") <b>$installed</b>"
     2.7 +icon="/usr/share/pixmaps/tazpkg.png"
     2.8  [ -f "$db/packages.list" ] && mtime=$(find $db/packages.list -mtime +10;)
     2.9  [ -f "$db/packages.up" ] && up=$(cat $db/packages.up | wc -l)
    2.10  
    2.11 @@ -33,7 +34,7 @@
    2.12  	# Attach a file descriptor
    2.13  	exec 3<> $fifo	
    2.14  	# Notification icon
    2.15 -	yad --notification --listen --image="tazpkg" \
    2.16 +	yad --notification --listen --image=$icon \
    2.17  		--text="Checking packages lists - $text" <&3
    2.18  	# Clean-up
    2.19  	rm -f $fifo