tazpkg diff tazpkgbox @ rev 210
tazpkgbox: display package config files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 23 20:44:37 2008 +0000 (2008-11-23) |
parents | 151f9157e6f0 |
children | 2f8faaf570c5 |
line diff
1.1 --- a/tazpkgbox Sun Nov 23 12:48:57 2008 +0000 1.2 +++ b/tazpkgbox Sun Nov 23 20:44:37 2008 +0000 1.3 @@ -73,30 +73,36 @@ 1.4 </window> 1.5 ' 1.6 1.7 -export LIST_CONFIG_FILES=' 1.8 -<window title="configuration files" icon-name="system-file-manager"> 1.9 +FILES="$2" 1.10 +[ "$1" = "list_config" ] || FILES="" 1.11 +export LIST_CONFIG_FILES=" 1.12 +<window title=\"configuration files\" icon-name=\"system-file-manager\"> 1.13 <vbox> 1.14 - <tree exported_column="5"> 1.15 + <tree exported_column=\"5\"> 1.16 <width>560</width><height>160</height> 1.17 <variable>CONF_FILE</variable> 1.18 <label>Access | User | Group | Size | Update Date | Name</label> 1.19 - <input>tazpkg list-config --box</input> 1.20 - <action>leafpad $CONF_FILE</action> 1.21 + <input>tazpkg list-config --box $FILES</input> 1.22 + <action>leafpad \$CONF_FILE</action> 1.23 </tree> 1.24 <hbox> 1.25 - <text wrap="false"> 1.26 + <text wrap=\"false\"> 1.27 <label> 1.28 -"Only files with Update Date have been modified after package installation" 1.29 +\"Only files with Update Date have been modified after package installation\" 1.30 </label> 1.31 </text> 1.32 <button> 1.33 - <input file icon="gtk-close"></input> 1.34 - <action type="closewindow">INSTALLED_PACKAGE_ACTIONS</action> 1.35 + <input file icon=\"gtk-close\"></input> 1.36 + <action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action> 1.37 </button> 1.38 </hbox> 1.39 </vbox> 1.40 </window> 1.41 -' 1.42 +" 1.43 +if [ "$1" = "list_config" ]; then 1.44 + gtkdialog --center --program=LIST_CONFIG_FILES >/dev/null 1.45 + exit 0 1.46 +fi 1.47 1.48 export SETUP_UNDIGEST=' 1.49 <window title="undigest mirrors" icon-name="tazpkg">