tazpkg diff tazpkg-box @ rev 642
Fix icon in tazpkg-doc.desktop
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 02 14:53:21 2014 +0100 (2014-01-02) |
parents | de952705379e |
children | 192b971ccc93 |
line diff
1.1 --- a/tazpkg-box Sat Jun 23 00:51:57 2012 +0000 1.2 +++ b/tazpkg-box Thu Jan 02 14:53:21 2014 +0100 1.3 @@ -1,12 +1,12 @@ 1.4 #!/bin/sh 1.5 # 1.6 -# Small GTK boxes to TazPKG for deep desktop integration. PcmanFM 0.5.x has a 1.7 -# patch to extract a TazPKG file but not Thunar and other FM. TazPKGbox tries 1.8 +# Small GTK boxes to TazPkg for deep desktop integration. PcmanFM 0.5.x has a 1.9 +# patch to extract a TazPkg file but not Thunar and other FM. TazPkgBox tries 1.10 # to follow freedesktop standards. 1.11 # 1.12 -# Copyright (C) 2012 SliTaz GNU/Linux - GNU gpl v2 1.13 +# Copyright (C) 2011-2013 SliTaz GNU/Linux - GNU GPL v2 1.14 # 1.15 -# Authors : Christophe Lincoln <pankso@slitaz.org> 1.16 +# Authors: Christophe Lincoln <pankso@slitaz.org> 1.17 # 1.18 1.19 # Internationalization. 1.20 @@ -14,14 +14,14 @@ 1.21 TEXTDOMAIN='tazpkg' 1.22 export TEXTDOMAIN 1.23 1.24 -title=$(gettext "TazPKG Action") 1.25 +title=$(gettext "TazPkg Action") 1.26 icon="/usr/share/pixmaps/tazpkg.png" 1.27 -opts="--image=tazpkg --image-on-top --width=520 --center --on-top" 1.28 +opts="--image=tazpkg --image-on-top --center --on-top" 1.29 1.30 # Nice GTK output for install and extract. 1.31 output() { 1.32 yad --text-info $opts --text="<b>$title</b>" \ 1.33 - --height=260 --title="$title" --window-icon=$icon \ 1.34 + --height=260 --width=520 --title="$title" --window-icon=$icon \ 1.35 --tail --margins=4 --button="gtk-close:0" 1.36 } 1.37 1.38 @@ -30,10 +30,10 @@ 1.39 pkgname=${pkg%.tazpkg} 1.40 text=$(eval_gettext 'Package name: <b>$pkgname</b>') 1.41 yad --text="$text" $opts \ 1.42 - --title="$title" --height=100 \ 1.43 - --window-icon=$icon --image-on-top \ 1.44 + --title="$title" \ 1.45 + --window-icon=$icon \ 1.46 --button="$(gettext 'Install'):3" --button="$(gettext 'Extract'):2" \ 1.47 - --button="gtk-close:1" 1.48 + --button="gtk-cancel:1" 1.49 } 1.50 1.51 # Actions user can do when clicking on a package. 1.52 @@ -49,7 +49,7 @@ 1.53 esac 1.54 } 1.55 1.56 -# TazPKG URL Handler. 1.57 +# TazPkg URL Handler. 1.58 dl_inst() { 1.59 pkg=$(basename $url) 1.60 eval_gettext "Downloading: \$pkg"; echo -e "\n" 1.61 @@ -64,10 +64,10 @@ 1.62 1.63 case "$1" in 1.64 usage|help|-u|-h) 1.65 - progname=$(basename $0) 1.66 - eval_gettext "Usage: \$progname [actions|url] [pkg]" ;; 1.67 + echo "$(gettext 'Usage:') $(basename $0) [actions|$(gettext 'URL')] \ 1.68 +[$(gettext 'package')]" ;; 1.69 tazpkg://*) 1.70 - # TazPKG URL's handler. 1.71 + # TazPkg URL's handler. 1.72 url="http://${1#tazpkg://}" 1.73 dl_inst | output ;; 1.74 actions)