3a3a047a71
2004-08-18 Breda McColgan <breda.mccolgan@sun.com> * Updated the following files: * help/C/zenity.xml * help/C/zenity-C.omf * help/C/figures/zenity-calendar-screenshot.png * help/C/figures/zenity-entry-screenshot.png * help/C/figures/zenity-error-screenshot.png * help/C/figures/zenity-fileselection-screenshot.png * help/C/figures/zenity-information-screenshot.png * help/C/figures/zenity-list-screenshot.png * help/C/figures/zenity-progress-screenshot.png * help/C/figures/zenity-question-screenshot.png * help/C/figures/zenity-text-screenshot.png * help/C/figures/zenity-warning-screenshot.png * Added the following files: * help/C/l10n.txt * help/C/l10n_scripts/ * help/C/l10n_scripts/calendar.sh * help/C/l10n_scripts/cvs.txt * help/C/l10n_scripts/error.sh * help/C/l10n_scripts/filesel.sh * help/C/l10n_scripts/info.sh * help/C/l10n_scripts/list.sh * help/C/l10n_scripts/progress.sh * help/C/l10n_scripts/question.sh * help/C/l10n_scripts/text_entry.sh * help/C/l10n_scripts/text_info.sh * help/C/l10n_scripts/warning.sh See the help/C/l10n.txt file for information about l10n_scripts.
18 lines
364 B
Bash
Executable File
18 lines
364 B
Bash
Executable File
#!/bin/sh
|
|
|
|
FILE=`zenity --file-selection \
|
|
--title="Select a File"`
|
|
|
|
case $? in
|
|
0)
|
|
zenity --text-info \
|
|
--title=$FILE \
|
|
--filename=$FILE \
|
|
--editable 2>/tmp/tmp.txt;;
|
|
1)
|
|
echo "No file selected.";;
|
|
-1)
|
|
echo "No file selected.";;
|
|
esac
|
|
|