From f1bf713d0fcd86d38b119d95b276f67245123810 Mon Sep 17 00:00:00 2001 From: Yasumichi Akahoshi Date: Sat, 19 Nov 2011 02:55:00 +0900 Subject: Add mallard pages and update screenshots. Signed-off-by: Yasumichi Akahoshi --- help/C/file-selection.page | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 help/C/file-selection.page (limited to 'help/C/file-selection.page') diff --git a/help/C/file-selection.page b/help/C/file-selection.page new file mode 100644 index 0000000..0ec8c5b --- /dev/null +++ b/help/C/file-selection.page @@ -0,0 +1,70 @@ + + + + Use the --file-selection option. + + File Selection Dialog +

+ Use the --file-selection option to create a file selection dialog. Zenity returns the selected files or directories to standard + output. The default mode of the file selection dialog is open. +

+

+ The file selection dialog supports the following options: +

+ + + + + <cmd>--filename</cmd>=<var>filename</var> +

Specifies the file or directory that is selected in the file selection dialog when the dialog is first shown.

+
+ + + <cmd>--multiple</cmd> +

Allows the selection of multiple filenames in the file selection dialog.

+
+ + + <cmd>--directory</cmd> +

Allows only selection of directories in the file selection dialog.

+
+ + + <cmd>--save</cmd> +

Set the file selection dialog into save mode.

+
+ + + <cmd>--separator</cmd>=<var>separator</var> +

Specifies the string that is used to divide the returned list of filenames.

+
+ +
+ +

+ The following example script shows how to create a file selection dialog: +

+ + +#!/bin/sh + +FILE=`zenity --file-selection --title="Select a File"` + +case $? in + 0) + echo "\"$FILE\" selected.";; + 1) + echo "No file selected.";; + -1) + echo "An unexpected error has occurred.";; +esac + + +
+ File Selection Dialog Example + Zenity file selection dialog example + +
+
-- cgit v1.2.3-2-g168b