Strip Down

This commit is contained in:
TheBrokenRail 2022-03-10 22:36:03 -05:00
parent d8056041f8
commit 6cf0447c3b
345 changed files with 126 additions and 134797 deletions

View File

@ -1,70 +0,0 @@
aclocal.m4
autom4te.cache
*.bz2
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
gnome-doc-utils.make
*.gz
INSTALL
install-sh
Makefile
Makefile.in
missing
mkinstalldirs
stamp-h
stamp-h1
stamp-h.in
zenity.spec
data/Makefile
data/Makefile.in
help/C/Makefile
help/C/Makefile.in
help/C/omf_timestamp
help/C/zenity-C.omf.out
help/es/.xml2po.mo
help/es/zenity.xml
help/fr/.xml2po.mo
help/fr/zenity.xml
help/sr/*.in
help/sr/Makefile
help/sr/*.out
help/sr/omf_timestamp
help/uk/.xml2po.mo
help/uk/zenity.xml
help/Makefile
help/Makefile.in
help/zenity-*.omf
po/*.gmo
po/*.mo
po/*.pot
po/Makefile
po/Makefile.in
po/Makefile.in.in
po/POTFILES
po/cat-id-tbl.c
po/stamp-cat-id
po/po2tbl.sed
po/po2tbl.sed.in
po/messages
po/missing
po/stamp-it
src/zenity.gladep
src/zenity
src/Makefile.in
src/Makefile
src/gdialog
help/zenity.pot
src/.deps
help/*/.xml2po.mo
help/bg/zenity.xml
help/de/zenity.xml
help/en_GB/zenity.xml
help/fi/zenity.xml
help/oc/zenity.xml
help/ru/zenity.xml
help/sv/zenity.xml

View File

@ -1,22 +0,0 @@
aclocal.m4
autom4te.cache
*.bz2
compile
config.h
config.h.in
config.log
config.status
configure
depcomp
gnome-doc-utils.make
*.gz
INSTALL
install-sh
Makefile
Makefile.in
missing
mkinstalldirs
stamp-h
stamp-h1
stamp-h.in
zenity.spec

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.vscode
build
CMakeLists.txt.user
*.autosave

View File

@ -1,11 +0,0 @@
variables:
DEPENDENCIES: gettext gettext-devel gcc redhat-rpm-config meson libtool git
gtk3-devel yelp-tools
build_fedora_33:
image: fedora:33
before_script:
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson --buildtype=debug build
- ninja -v -C build

38
CMakeLists.txt Normal file
View File

@ -0,0 +1,38 @@
cmake_minimum_required(VERSION 3.13.0)
# Start Project
project(zenity)
# PIC
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
# Warnings
add_compile_options(-Wall -Wextra -Werror -Wpointer-arith -Wnull-dereference -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare)
add_link_options(-Wl,--no-undefined)
add_definitions(-D_GNU_SOURCE)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 11)
# GTK+
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED IMPORTED_TARGET "gtk+-3.0>=3.16.0")
pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET "glib-2.0>=2.43.4")
link_libraries(PkgConfig::GTK3 PkgConfig::GLIB)
# X11
find_package(X11 REQUIRED)
link_libraries(${X11_LIBRARIES})
# Build
add_custom_command(
OUTPUT ".gresource.c"
COMMAND glib-compile-resources
ARGS "--target" "${CMAKE_BINARY_DIR}/.gresource.c" "--generate-source" "--sourcedir" "${CMAKE_SOURCE_DIR}/src" "${CMAKE_SOURCE_DIR}/src/.gresource.xml"
DEPENDS "src/.gresource.xml" "src/zenity.ui"
)
add_executable(zenity src/entry.c src/tree.c src/option.c src/util.c src/main.c "${CMAKE_BINARY_DIR}/.gresource.c")
target_compile_definitions(zenity PRIVATE "-DG_LOG_DOMAIN=\"Zenity\"")
# Install
install(TARGETS zenity DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES src/zenity.ui DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/zenity")

View File

@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@ -1,13 +0,0 @@
install_man('zenity.1')
install_data(
['zenity.png',
'zenity-calendar.png',
'zenity-list.png',
'zenity-file.png',
'zenity-progress.png',
'zenity-text.png',
'zenity-scale.png',
'zenity-entry.png',
'zenity-notification.png']
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -1,421 +0,0 @@
.TH ZENITY 1 "December 2011"
.SH NAME
zenity \- display GTK+ dialogs
.SH SYNOPSIS
.B zenity
.RI [ options ]
.SH DESCRIPTION
\fBzenity\fP is a program that will display GTK+ dialogs, and return
(either in the return code, or on standard output) the users
input. This allows you to present information, and ask for information
from the user, from all manner of shell scripts.
.PP
For example, \fBzenity \-\-question\fP will return either 0, 1 or 5,
depending on whether the user pressed \fIOK\fP, \fICancel\fP or timeout
has been reached. \fBzenity --entry\fP will output on standard output
what the user typed into the text entry field.
.PP
Comprehensive documentation is available in the GNOME Help Browser.
.SH OPTIONS
This program follows the usual GNU command line syntax, with long
options starting with two dashes (`-').
.PP
Dialog options
.TP
.B \-\-calendar
Display calendar dialog
.TP
.B \-\-entry
Display text entry dialog
.TP
.B \-\-error
Display error dialog
.TP
.B \-\-file\-selection
Display file selection dialog
.TP
.B \-\-info
Display info dialog
.TP
.B \-\-list
Display list dialog
.TP
.B \-\-notification
Display notification
.TP
.B \-\-progress
Display progress indication dialog
.TP
.B \-\-question
Display question dialog
.TP
.B \-\-text-info
Display text information dialog
.TP
.B \-\-warning
Display warning dialog
.TP
.B \-\-scale
Display scale dialog
.TP
.B \-\-color-selection
Display color selection dialog
.TP
.B \-\-password
Display password dialog
.TP
.B \-\-forms
Display forms dialog
.PP
General options
.TP
.B \-\-title=TITLE
Set the dialog title
.TP
.B \-\-window-icon=ICONPATH
Set the window icon with the path to an image. Alternatively, one of the four stock icons can be used: 'error', 'info', 'question' or 'warning'
.TP
.B \-\-icon-name=ICONNAME
The name of the icon to display on the dialog to override the default stock icons
.TP
.B \-\-width=WIDTH
Set the dialog width
.TP
.B \-\-height=HEIGHT
Set the dialog height
.TP
.B \-\-timeout=TIMEOUT
Set the dialog timeout in seconds
.PP
Calendar options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-day=INT
Set the calendar day
.TP
.B \-\-month=INT
Set the calendar month
.TP
.B \-\-year=INT
Set the calendar year
.TP
.B \-\-date-format=PATTERN
Set the format for the returned date. The default depends on the user locale or be set with the strftime style. For example %A %d/%m/%y
.PP
Text entry options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-entry-text=STRING
Set the entry text
.TP
.B \-\-hide-text
Hide the entry text
.PP
Error options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-no\-wrap
Do not enable text wrapping
.TP
.B \-\-no\-markup
Do not enable pango markup
.PP
File selection options
.TP
.B \-\-filename=FILENAME
Set the file or directory to be selected by default
.TP
.B \-\-multiple
Allow selection of multiple filenames in file selection dialog
.TP
.B \-\-directory
Activate directory-only selection
.TP
.B \-\-save
Activate save mode
.TP
.B \-\-separator=SEPARATOR
Specify separator character when returning multiple filenames
.TP
.B \-\-confirm\-overwrite
Confirm file selection if filename already exists
.TP
.B \-\-file\-filter=NAME | PATTERN1 PATTERN2
Sets a filename filter
.PP
Info options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-no\-wrap
Do not enable text wrapping
.TP
.B \-\-no\-markup
Do not enable pango markup
.PP
List options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-column=STRING
Set the column header
.TP
.B \-\-checklist
Use check boxes for first column
.TP
.B \-\-radiolist
Use radio buttons for first column
.TP
.B \-\-separator=STRING
Set output separator character
.TP
.B \-\-multiple
Allow multiple rows to be selected
.TP
.B \-\-editable
Allow changes to text
.TP
.B \-\-print-column=NUMBER
Specify what column to print to standard output. The default is to return
the first column. 'ALL' may be used to print all columns.
.TP
.B \-\-hide\-column=NUMBER
Hide a specific column
.TP
.B \-\-hide\-header
Hides the column headers
.PP
Notification options
.TP
.B \-\-text=STRING
Set the notification text
.TP
.B \-\-listen
Listen for commands on stdin. Commands include 'message', 'tooltip', 'icon', and 'visible' separated by a colon. For example, 'message: Hello world', 'visible: false', or 'icon: /path/to/icon'. The icon command also accepts the four stock icon: 'error', 'info', 'question', and 'warning'
.PP
Progress options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-percentage=INT
Set initial percentage
.TP
.B \-\-auto\-close
Close dialog when 100% has been reached
.TP
.B \-\-auto\-kill
Kill parent process if cancel button is pressed
.TP
.B \-\-pulsate
Pulsate progress bar
.TP
.B \-\-no\-cancel
Hides the cancel button
.PP
Question options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-no\-wrap
Do not enable text wrapping
.TP
.B \-\-no\-markup
Do not enable pango markup
.TP
.B \-\-ok\-label
Set the text of the OK button
.TP
.B \-\-cancel\-label
Set the text of the cancel button
.PP
Text options
.TP
.B \-\-filename=FILENAME
Open file
.TP
.B \-\-editable
Allow changes to text
.TP
.B \-\-checkbox=TEXT
Enable a checkbox for use like a 'I read and accept the terms.'
.TP
.B \-\-ok\-label
Set the text of the OK button
.TP
.B \-\-cancel\-label
Set the text of the cancel button
.PP
Warning options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-no\-wrap
Do not enable text wrapping
.TP
.B \-\-no\-markup
Do not enable pango markup
.PP
Scale options
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-value=VALUE
Set initial value
.TP
.B \-\-min\-value=VALUE
Set minimum value
.TP
.B \-\-max\-value=VALUE
Set maximum value
.TP
.B \-\-step=VALUE
Set step size
.TP
.B \-\-print\-partial
Print partial values
.TP
.B \-\-hide\-value
Hide value
.PP
Color selection options
.TP
.B \-\-color=VALUE
Set the initial color
.TP
.B \-\-show\-palette
Show the palette
.PP
Password dialog options
.TP
.B \-\-username
Display the username field
.PP
Forms dialog options
.TP
.B \-\-add\-entry=FIELDNAME
Add a new Entry in forms dialog
.TP
.B \-\-add\-password=FIELDNAME
Add a new Password Entry in forms dialog
.TP
.B \-\-add\-calendar=FIELDNAME
Add a new Calendar in forms dialog
.TP
.B \-\-text=STRING
Set the dialog text
.TP
.B \-\-separator=STRING
Set output separator character
.TP
.B \-\-forms\-date-format=PATTERN
Set the format for the returned date. The default depends on the user locale or be set with the strftime style. For example %A %d/%m/%y
.PP
Miscellaneous options
.TP
.B \-?, \-\-help
Show summary of options.
.TP
.B \-\-about
Display an about dialog.
.TP
.B \-\-version
Show version of program.
.PP
Also the standard GTK+ options are accepted. For more information about the GTK+ options, execute following command.
.IP
zenity \-\-help\-gtk
.SH ENVIRONMENT
Normally, zenity detects the terminal window from which it was launched and
keeps itself above that window. This behavior can be disabled by unsetting the
WINDOWID environment variable.
.SH EXAMPLES
Display a file selector with the title \fISelect a file to
remove\fP. The file selected is returned on standard output.
.IP
zenity \-\-title="Select a file to remove" \-\-file-selection
.PP
Display a text entry dialog with the title \fISelect Host\fP and the
text \fISelect the host you would like to flood-ping\fP. The entered
text is returned on standard output.
.IP
zenity \-\-title "Select Host" \-\-entry \-\-text "Select the host you would like to flood-ping"
.PP
Display a dialog, asking \fIMicrosoft Windows has been found! Would
you like to remove it?\fP. The return code will be 0 (true in shell)
if \fIOK\fP is selected, and 1 (false) if \fICancel\fP is selected.
.IP
zenity \-\-question \-\-title "Alert" \-\-text "Microsoft Windows has been found! Would you like to remove it?"
.PP
Show the search results in a list dialog with the title \fISearch Results\fP
and the text \fIFinding all header files...\fP.
.IP
find . \-name '*.h' | zenity \-\-list \-\-title "Search Results" \-\-text "Finding all header files.." \-\-column "Files"
.PP
Show a notification in the message tray
.IP
zenity \-\-notification \-\-window-icon=update.png \-\-text "System update necessary!"
.PP
Display a weekly shopping list in a check list dialog with \fIApples\fP and \fIOranges\fP pre selected
.IP
zenity \-\-list \-\-checklist \-\-column "Buy" \-\-column "Item" TRUE Apples TRUE Oranges FALSE Pears FALSE Toothpaste
.PP
Display a progress dialog while searching for all the postscript files in your home directory
.P
find $HOME \-name '*.ps' | zenity \-\-progress \-\-pulsate
.SH AUTHOR
\fBZenity\fP was written by Glynn Foster <glynn.foster@sun.com>.
.P
This manual page was written by Ross Burton <ross@burtonini.com>.
.SH SEE ALSO
\fBdialog\fP(1)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1,3 +0,0 @@
Makefile
Makefile.in
zenity-*.omf

View File

@ -1,4 +0,0 @@
Makefile
Makefile.in
omf_timestamp
zenity-C.omf.out

View File

@ -1,69 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="calendar">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--calendar</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Calendar Dialog</title>
<p>
Use the <cmd>--calendar</cmd> option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date.
</p>
<p>
The calendar dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>text</var></title>
<p>Specifies the text that is displayed in the calendar dialog.</p>
</item>
<item>
<title><cmd>--day</cmd>=<var>day</var></title>
<p>Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.</p>
</item>
<item>
<title><cmd>--month</cmd>=<var>month</var></title>
<p>Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.</p>
</item>
<item>
<title><cmd>--year</cmd>=<var>year</var></title>
<p>Specifies the year that is selected in the calendar dialog.</p>
</item>
<item>
<title><cmd>--date-format</cmd>=<var>format</var></title>
<p>Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. Format must be a format that is acceptable to the <cmd>strftime</cmd> function, for example <var>%A %d/%m/%y</var>.</p>
</item>
</terms>
<p>
The following example script shows how to create a calendar dialog:
</p>
<code>
#!/bin/sh
if zenity --calendar \
--title="Select a Date" \
--text="Click on a date to select that date." \
--day=10 --month=8 --year=2004
then echo $?
else echo "No date selected"
fi
</code>
<figure>
<title>Calendar Dialog Example</title>
<desc>Zenity calendar dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-calendar-screenshot.png"/>
</figure>
</page>

View File

@ -1,56 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="color-selection">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--color-selection</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Color Selection Dialog</title>
<p>
Use the <cmd>--color-selection</cmd> option to create a color selection dialog.
</p>
<p>
The color selection dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--color</cmd>=<var>VALUE</var></title>
<p>Set the initial color.(ex: #FF0000)</p>
</item>
<item>
<title><cmd>--show-palette</cmd></title>
<p>Show the palette.</p>
</item>
</terms>
<p>
The following example script shows how to create a color selection dialog:
</p>
<code>
#!/bin/sh
COLOR=`zenity --color-selection --show-palette`
case $? in
0)
echo "You selected $COLOR.";;
1)
echo "No color selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
</code>
<figure>
<title>Color Selection Dialog Example</title>
<desc><app>Zenity</app> color selection dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-colorselection-screenshot.png"/>
</figure>
</page>

View File

@ -1,58 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="entry">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--entry</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Text Entry Dialog</title>
<p>
Use the <cmd>--entry</cmd> option to create a text entry dialog. <app>Zenity</app> returns the contents of the text entry to standard output.
</p>
<p>
The text entry dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>text</var></title>
<p>Specifies the text that is displayed in the text entry dialog.</p>
</item>
<item>
<title><cmd>--entry-text</cmd>=<var>text</var></title>
<p>Specifies the text that is displayed in the entry field of the text entry dialog.</p>
</item>
<item>
<title><cmd>--hide-text</cmd></title>
<p>Hides the text in the entry field of the text entry dialog.</p>
</item>
</terms>
<p>
The following example script shows how to create a text entry dialog:
</p>
<code>
#!/bin/sh
if zenity --entry \
--title="Add new profile" \
--text="Enter name of new profile:" \
--entry-text "NewProfile"
then echo $?
else echo "No name entered"
fi
</code>
<figure>
<title>Text Entry Dialog Example</title>
<desc><app>Zenity</app> text entry dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-entry-screenshot.png"/>
</figure>
</page>

View File

@ -1,31 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="error">
<info>
<link type="guide" xref="message"/>
<desc>Use the <cmd>--error</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Error Dialog</title>
<p>
Use the <cmd>--error</cmd> option to create an error dialog.
</p>
<p>
The following example script shows how to create an error dialog:
</p>
<code>
#!/bin/bash
zenity --error \
--text="Could not find /var/log/syslog."
</code>
<figure>
<title>Error Dialog Example</title>
<desc><app>Zenity</app> error dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-error-screenshot.png"/>
</figure>
</page>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,71 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="file-selection">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--file-selection</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>File Selection Dialog</title>
<p>
Use the <cmd>--file-selection</cmd> option to create a file selection dialog. <app>Zenity</app> returns the selected files or directories to standard
output. The default mode of the file selection dialog is open.
</p>
<p>
The file selection dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--filename</cmd>=<var>filename</var></title>
<p>Specifies the file or directory that is selected in the file selection dialog when the dialog is first shown.</p>
</item>
<item>
<title><cmd>--multiple</cmd></title>
<p>Allows the selection of multiple filenames in the file selection dialog.</p>
</item>
<item>
<title><cmd>--directory</cmd></title>
<p>Allows only selection of directories in the file selection dialog.</p>
</item>
<item>
<title><cmd>--save</cmd></title>
<p>Set the file selection dialog into save mode.</p>
</item>
<item>
<title><cmd>--separator</cmd>=<var>separator</var></title>
<p>Specifies the string that is used to divide the returned list of filenames.</p>
</item>
</terms>
<p>
The following example script shows how to create a file selection dialog:
</p>
<code>
#!/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
</code>
<figure>
<title>File Selection Dialog Example</title>
<desc><app>Zenity</app> file selection dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-fileselection-screenshot.png"/>
</figure>
</page>

View File

@ -1,84 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="forms">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--forms</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Forms Dialog</title>
<p>
Use the <cmd>--forms</cmd> option to create a forms dialog.
</p>
<p>
The forms dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--add-entry</cmd>=<var>FieldName</var></title>
<p>Add a new Entry in forms dialog.</p>
</item>
<item>
<title>--add-password<cmd></cmd>=<var>FieldName</var></title>
<p>Add a new Password Entry in forms dialog. (Hide text)</p>
</item>
<item>
<title><cmd>--add-calendar</cmd>=<var>FieldName</var></title>
<p>Add a new Calendar in forms dialog.</p>
</item>
<item>
<title><cmd>--text</cmd>=<var>TEXT</var></title>
<p>Set the dialog text.</p>
</item>
<item>
<title><cmd>--separator</cmd>=<var>SEPARATOR</var></title>
<p>Set output separator character. (Default: | )</p>
</item>
<item>
<title><cmd>--forms-date-format</cmd>=<var>PATTERN</var></title>
<p>Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the <cmd>strftime</cmd> function, for example <var>%A %d/%m/%y</var>.</p>
</item>
</terms>
<p>
The following example script shows how to create a forms dialog:
</p>
<code>
#!/bin/sh
zenity --forms --title="Add Friend" \
--text="Enter information about your friend." \
--separator="," \
--add-entry="First Name" \
--add-entry="Family Name" \
--add-entry="Email" \
--add-calendar="Birthday" >> addr.csv
case $? in
0)
echo "Friend added.";;
1)
echo "No friend added."
;;
-1)
echo "An unexpected error has occurred."
;;
esac
</code>
<figure>
<title>Forms Dialog Example</title>
<desc><app>Zenity</app> forms dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-forms-screenshot.png"/>
</figure>
</page>

View File

@ -1,31 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="guide"
id="index">
<info>
<credit type="author">
<name>Sun Java Desktop System Documentation Team</name>
</credit>
<credit type="author">
<name>Glynn Foster</name>
</credit>
<credit type="editor">
<name>Nicholas Curran</name>
<email></email>
</credit>
<credit type="editor">
<name>Yasumichi Akahoshi</name>
<email>yasumichi@vinelinux.org</email>
</credit>
<!--
<license>
<p>GNU Free Documentation License (GFDL)</p>
</license>
-->
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Zenity Manual</title>
<!--links type="topic" groups="dialogs" /-->
<section id="dialogs" style="2column">
<title>Dialogs</title>
</section>
</page>

View File

@ -1,31 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="info">
<info>
<link type="guide" xref="message"/>
<desc>Use the <cmd>--info</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Info Dialog</title>
<p>
Use the <cmd>--info</cmd> option to create an information dialog.
</p>
<p>
The following example script shows how to create an information dialog:
</p>
<code>
#!/bin/bash
zenity --info \
--text="Merge complete. Updated 3 of 10 files."
</code>
<figure>
<title>Information Dialog Example</title>
<desc><app>Zenity</app> information dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-information-screenshot.png"/>
</figure>
</page>

View File

@ -1,35 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="intro">
<info>
<link type="guide" xref="index"/>
<desc><app>Zenity</app> enables you to create the various types of simple dialog.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Introduction</title>
<p>
<app>Zenity</app> enables you to create the following types of simple dialog:
</p>
<list>
<item><p>Calendar</p></item>
<item><p>File selection</p></item>
<item><p>Forms</p></item>
<item><p>List</p></item>
<item><p>Notification icon</p></item>
<item><p>Message</p>
<list>
<item><p>Error</p></item>
<item><p>Information</p></item>
<item><p>Question</p></item>
<item><p>Warning</p></item>
</list>
</item>
<item><p>Password entry</p></item>
<item><p>Progress</p></item>
<item><p>Text entry</p></item>
<item><p>Text information</p></item>
<item><p>Scale</p></item>
<item><p>Color selection</p></item>
</list>
</page>

View File

@ -1,88 +0,0 @@
Zenity Manual V2.0
------------------------
SUMMARY OF CHANGES
------------------------
Created by: Breda McColgan
Date: July 2004
Manual version: 2.0
------------------------
SCREENSHOT INSTRUCTIONS
------------------------
To create the screenshots, perform the following steps:
1. Create a directory called /tmp/l10n_scripts.
2. Copy the scripts to the /tmp/l10n_scripts directory.
3. Edit the appropriate script (see below)
to replace the English text with the localised text, where applicable.
4. Ensure that all scripts are executable.
If necessary, run the following command:
chmod +x <script-name>
5. Run the script from the /tmp/l10n_scripts directory, as follows:
cd /tmp/l10n_scripts
. ./<script-name>
zenity-calendar-screenshot.png
==============================
<script-name> = calendar.sh
zenity-entry-screenshot.png
===========================
<script-name> = text_entry.sh
zenity-error-screenshot.png
===========================
<script-name> = error.sh
zenity-fileselection-screenshot.png
===================================
<script-name> = file_sel.sh
zenity-information-screenshot.png
=================================
<script-name> = info.sh
zenity-list-screenshot.png
==========================
<script-name> = list.sh
zenity-progress-screenshot.png
==============================
<script-name> = progress.sh
zenity-question-screenshot.png
==============================
<script-name> = question.sh
zenity-text-screenshot.png
==========================
<script-name> = text_info.sh
Select cvs.txt from the File Selector dialog.
Resize the window so that only the text appears -- no blank space.
zenity-warning-screenshot.png
=============================
<script-name> = warning.sh

View File

@ -1,10 +0,0 @@
#!/bin/sh
if zenity --calendar \
--title="Select a Date" \
--text="Click on a date to select that date." \
--day=10 --month=8 --year=2004
then echo $?
else echo "No date selected"
fi

View File

@ -1,51 +0,0 @@
Getting the most out of CVS in GNOME
====================================
Introductory Beginnings-
Current Versions System, CVS, is a powerful
method of allowing many developers
to work on the same source code. It is used

View File

@ -1,4 +0,0 @@
#!/bin/bash
zenity --error \
--text="Could not find /var/log/syslog."

View File

@ -1,13 +0,0 @@
#!/bin/sh
FILE=`zenity --file-selection --title="Select a File"`
case $? in
0)
echo "\"$FILE\" selected.";;
1)
echo "No file selected.";;
-1)
echo "No file selected.";;
esac

View File

@ -1,4 +0,0 @@
#!/bin/bash
zenity --info \
--text="Merge complete. Updated 3 of 10 files."

View File

@ -1,8 +0,0 @@
#!/bin/sh
zenity --list \
--title="Choose the Bugs You Wish to View" \
--column="Bug Number" --column="Severity" --column="Description" \
992383 Normal "GtkTreeView crashes on multiple selections" \
293823 High "GNOME Dictionary does not handle proxy" \
393823 Critical "Menu editing does not work in GNOME 2.0"

View File

@ -1,5 +0,0 @@
#!/bin/sh
/gnome/head/cvs/zenity/src/zenity --notification \
--window-icon="info" \
--text="There are system updates necessary!"

View File

@ -1,18 +0,0 @@
#!/bin/sh
(
echo "10" ; sleep 1
echo "# Updating mail logs" ; sleep 1
echo "20" ; sleep 1
echo "# Resetting cron jobs" ; sleep 1
echo "50" ; sleep 1
echo "This line will just be ignored" ; sleep 1
echo "75" ; sleep 1
echo "# Rebooting system" ; sleep 1
echo "100" ; sleep 1
) |
zenity --progress --title="Update System Logs" --text="Scanning mail logs..." --percentage=0
if [ "$?" = -1 ] ; then
zenity --error --text="Update cancelled."
fi

View File

@ -1,4 +0,0 @@
#!/bin/bash
zenity --question \
--text="Are you sure you wish to proceed?"

View File

@ -1,11 +0,0 @@
#!/bin/sh
if zenity --entry \
--title="Add an Entry" \
--text="Enter your _password:" \
--entry-text "password" \
--hide-text
then echo $?
else echo "No password entered"
fi

View File

@ -1,17 +0,0 @@
#!/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

View File

@ -1,4 +0,0 @@
#!/bin/bash
zenity --warning \
--text="Disconnect the power cable to avoid electrical shock."

View File

@ -1,79 +0,0 @@
<license xmlns="http://projectmallard.org/1.0/"
href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">
<p>This work is licensed under a
<link href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">GNU Free
Documentation License Version 1.1</link> or any later version.</p>
<p>
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License (GFDL), Version 1.1 or any later version published
by the Free Software Foundation with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts. You can find
a copy of the GFDL at this
<link href="https://www.gnu.org/licenses/old-licenses/fdl-1.1.txt">link</link>.
</p>
<p> This manual is part of a collection of GNOME manuals
distributed under the GFDL. If you want to distribute this
manual separately from the collection, you can do so by
adding a copy of the license to the manual, as described in
section 6 of the license.
</p>
<p>
Many of the names used by companies to distinguish their
products and services are claimed as trademarks. Where those
names appear in any GNOME documentation, and the members of
the GNOME Documentation Project are made aware of those
trademarks, then the names are in capital letters or initial
capital letters.
</p>
<p>
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
UNDER THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
WITH THE FURTHER UNDERSTANDING THAT:
</p>
<list>
<item>
<p>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
THAT THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR
A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE
OF THE DOCUMENT OR MODIFIED VERSION OF THE
DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR
MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY
CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED
VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER
EXCEPT UNDER THIS DISCLAIMER; AND
</p>
</item>
<item>
<p>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE),
CONTRACT, OR OTHERWISE, SHALL THE AUTHOR,
INITIAL WRITER, ANY CONTRIBUTOR, OR ANY
DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION
OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH
PARTIES, BE LIABLE TO ANY PERSON FOR ANY
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES OF ANY CHARACTER
INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR
LOSSES ARISING OUT OF OR RELATING TO USE OF THE
DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT,
EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF
THE POSSIBILITY OF SUCH DAMAGES.
</p>
</item>
</list>
</license>

View File

@ -1,87 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="list">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--list</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>List Dialog</title>
<p>
Use the <cmd>--list</cmd> option to create a list dialog. <app>Zenity</app> returns the entries in the first column of text of selected rows to standard output.
</p>
<p>
Data for the dialog must specified column by column, row by row. Data can be provided to the dialog through standard input. Each entry must be separated by a newline character.
</p>
<p>
If you use the <cmd>--checklist</cmd> or <cmd>--radiolist</cmd> options, each row must start with either 'TRUE' or 'FALSE'.
</p>
<p>
The list dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--column</cmd>=<var>column</var></title>
<p>Specifies the column headers that are displayed in the list dialog. You must specify a <cmd>--column</cmd> option for each column that you want to display in the dialog.
</p>
</item>
<item>
<title><cmd>--checklist</cmd></title>
<p>Specifies that the first column in the list dialog contains check boxes.
</p>
</item>
<item>
<title><cmd>--radiolist</cmd></title>
<p>Specifies that the first column in the list dialog contains radio boxes.
</p>
</item>
<item>
<title><cmd>--editable</cmd></title>
<p>Allows the displayed items to be edited.
</p>
</item>
<item>
<title><cmd>--separator</cmd>=<var>separator</var></title>
<p>Specifies what string is used when the list dialog returns the selected entries.
</p>
</item>
<item>
<title><cmd>--print-column</cmd>=<var>column</var></title>
<p>Specifies what column should be printed out upon selection. The default column is
'1'. 'ALL' can be used to print out all columns in the list.
</p>
</item>
</terms>
<p>
The following example script shows how to create a list dialog:
</p>
<code>
#!/bin/sh
zenity --list \
--title="Choose the Bugs You Wish to View" \
--column="Bug Number" --column="Severity" --column="Description" \
992383 Normal "GtkTreeView crashes on multiple selections" \
293823 High "GNOME Dictionary does not handle proxy" \
393823 Critical "Menu editing does not work in GNOME 2.0"
</code>
<figure>
<title>List Dialog Example</title>
<desc><app>Zenity</app> list dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-list-screenshot.png"/>
</figure>
</page>

View File

@ -1,19 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="guide"
id="message">
<info>
<link type="guide" xref="index#dialogs" group="message"/>
<desc>
<link xref="error">Error</link>,
<link xref="info">Info</link>,
<link xref="question">Question</link>,
<link xref="warning">Warning</link>
</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Message Dialog</title>
<p>
For each type, use the <cmd>--text</cmd> option to specify the text that is displayed in the dialog.
</p>
<links type="topic" style="2column"/>
</page>

View File

@ -1,55 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="notification">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--notification</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Notification Icon</title>
<p>Use the <cmd>--notification</cmd> option to create a notification icon.</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>text</var></title>
<p>Specifies the text that is displayed in the notification area.</p>
</item>
<item>
<title><cmd>--listen</cmd>=icon: '<var>text</var>', message: '<var>text</var>', tooltip: '<var>text</var>', visible: '<var>text</var>',</title>
<p>Listens for commands at standard input. At least one command must be specified. Commands are comma separated. A command must be followed by a colon and a value. </p>
<note style="tip">
<p>The <cmd>icon</cmd> command also accepts four stock icon values such as <var>error</var>, <var>info</var>, <var>question</var> and <var>warning</var>.</p>
</note>
</item>
</terms>
<p>The following example script shows how to create a notification icon:</p>
<code>
#!/bin/sh
zenity --notification\
--window-icon="info" \
--text="There are system updates necessary!"
</code>
<figure>
<title>Notification Icon Example</title>
<desc><app>Zenity</app> notification icon example</desc>
<media type="image" mime="image/png" src="figures/zenity-notification-screenshot.png"/>
</figure>
<p>The following example script shows how to create a notification icon along with <cmd>--listen</cmd>:</p>
<code>
#!/bin/sh
cat &#60;&#60;EOH| zenity --notification --listen
message: this is the message text
EOH
</code>
<figure>
<title>Notification Icon with <cmd>--listen</cmd> Example</title>
<desc><app>Zenity</app> notification with <cmd>--listen</cmd> example</desc>
<media type="image" mime="image/png" src="figures/zenity-notification-listen-screenshot.png"/>
</figure>
</page>

View File

@ -1,51 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="password">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--password</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Password Dialog</title>
<p>
Use the <cmd>--password</cmd> option to create a password entry dialog.
</p>
<p>
The password entry dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--username</cmd></title>
<p>Display the username field.</p>
</item>
</terms>
<p>
The following example script shows how to create a password entry dialog:
</p>
<code>
#!/bin/sh
ENTRY=`zenity --password --username`
case $? in
0)
echo "User Name: `echo $ENTRY | cut -d'|' -f1`"
echo "Password : `echo $ENTRY | cut -d'|' -f2`"
;;
1)
echo "Stop login.";;
-1)
echo "An unexpected error has occurred.";;
esac
</code>
<figure>
<title>Password Entry Dialog Example</title>
<desc><app>Zenity</app> password entry dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-password-screenshot.png"/>
</figure>
</page>

View File

@ -1,80 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="progress">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--progress</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Progress Dialog</title>
<p>
Use the <cmd>--progress</cmd> option to create a progress dialog.
</p>
<p>
<app>Zenity</app> reads data from standard input line by line. If a line is prefixed with #, the text is updated with the text on that line. If a line contains only a number, the percentage is updated with that number.
</p>
<p>
The progress dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>text</var></title>
<p>Specifies the text that is displayed in the progress dialog.</p>
</item>
<item>
<title><cmd>--percentage</cmd>=<var>percentage</var></title>
<p>Specifies the initial percentage that is set in the progress dialog.</p>
</item>
<item>
<title><cmd>--auto-close</cmd></title>
<p>Closes the progress dialog when 100% has been reached.</p>
</item>
<item>
<title><cmd>--pulsate</cmd></title>
<p>Specifies that the progress bar pulsates until an EOF character is read from standard input.</p>
</item>
</terms>
<p>
The following example script shows how to create a progress dialog:
</p>
<code>
#!/bin/sh
(
echo "10" ; sleep 1
echo "# Updating mail logs" ; sleep 1
echo "20" ; sleep 1
echo "# Resetting cron jobs" ; sleep 1
echo "50" ; sleep 1
echo "This line will just be ignored" ; sleep 1
echo "75" ; sleep 1
echo "# Rebooting system" ; sleep 1
echo "100" ; sleep 1
) |
zenity --progress \
--title="Update System Logs" \
--text="Scanning mail logs..." \
--percentage=0
if [ "$?" = -1 ] ; then
zenity --error \
--text="Update canceled."
fi
</code>
<figure>
<title>Progress Dialog Example</title>
<desc><app>Zenity</app> progress dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-progress-screenshot.png"/>
</figure>
</page>

View File

@ -1,31 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="question">
<info>
<link type="guide" xref="message"/>
<desc>Use the <cmd>--question</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Question Dialog</title>
<p>
Use the <cmd>--question</cmd> option to create a question dialog.
</p>
<p>
The following example script shows how to create a question dialog:
</p>
<code>
#!/bin/bash
zenity --question \
--text="Are you sure you wish to proceed?"
</code>
<figure>
<title>Question Dialog Example</title>
<desc><app>Zenity</app> question dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-question-screenshot.png"/>
</figure>
</page>

View File

@ -1,81 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="scale">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--scale</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Scale Dialog</title>
<p>
Use the <cmd>--scale</cmd> option to create a scale dialog.
</p>
<p>
The scale dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--text</cmd>=<var>TEXT</var></title>
<p>Set the dialog text. (Default: Adjust the scale value)</p>
</item>
<item>
<title><cmd>--value</cmd>=<var>VALUE</var></title>
<p>Set initial value. (Default: 0) You must specify value between minimum value to maximum value.</p>
</item>
<item>
<title><cmd>--min-value</cmd>=<var>VALUE</var></title>
<p>Set minimum value. (Default: 0)</p>
</item>
<item>
<title><cmd>--max-value</cmd>=<var>VALUE</var></title>
<p>Set maximum value. (Default: 100)</p>
</item>
<item>
<title><cmd>--step</cmd>=<var>VALUE</var></title>
<p>Set step size. (Default: 1)</p>
</item>
<item>
<title><cmd>--print-partial</cmd></title>
<p>Print value to standard output, whenever a value is changed. </p>
</item>
<item>
<title><cmd>--hide-value</cmd></title>
<p>Hide value on dialog.</p>
</item>
</terms>
<p>
The following example script shows how to create a scale dialog:
</p>
<code>
#!/bin/sh
VALUE=`zenity --scale --text="Select window transparency." --value=50`
case $? in
0)
echo "You selected $VALUE%.";;
1)
echo "No value selected.";;
-1)
echo "An unexpected error has occurred.";;
esac
</code>
<figure>
<title>Scale Dialog Example</title>
<desc><app>Zenity</app> scale dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-scale-screenshot.png"/>
</figure>
</page>

View File

@ -1,86 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="text">
<info>
<link type="guide" xref="index#dialogs"/>
<desc>Use the <cmd>--text-info</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Text Information Dialog</title>
<p>
Use the <cmd>--text-info</cmd> option to create a text information dialog.
</p>
<p>
The text information dialog supports the following options:
</p>
<terms>
<item>
<title><cmd>--filename</cmd>=<var>filename</var></title>
<p>Specifies a file that is loaded in the text information dialog.</p>
</item>
<item>
<title><cmd>--editable</cmd></title>
<p>Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.</p>
</item>
<item>
<title><cmd>--font</cmd>=<var>FONT</var></title>
<p>Specifies the text font.</p>
</item>
<item>
<title><cmd>--checkbox</cmd>=<var>TEXT</var></title>
<p>Enable a checkbox for use like a 'I read and accept the terms.'</p>
</item>
<item>
<title><cmd>--html</cmd></title>
<p>Enable html support.</p>
</item>
<item>
<title><cmd>--url</cmd>=<var>URL</var></title>
<p>Sets an url instead of a file. Only works if you use --html option.</p>
</item>
</terms>
<p>
The following example script shows how to create a text information dialog:
</p>
<code>
#!/bin/sh
# You must place file "COPYING" in same folder of this script.
FILE=`dirname $0`/COPYING
zenity --text-info \
--title="License" \
--filename=$FILE \
--checkbox="I read and accept the terms."
case $? in
0)
echo "Start installation!"
# next step
;;
1)
echo "Stop installation!"
;;
-1)
echo "An unexpected error has occurred."
;;
esac
</code>
<figure>
<title>Text Information Dialog Example</title>
<desc><app>Zenity</app> text information dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-text-screenshot.png"/>
</figure>
</page>

View File

@ -1,293 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="usage">
<info>
<link type="guide" xref="index"/>
<desc>You can use <app>Zenity</app> to create simple dialogs that interact graphically with the user.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Usage</title>
<p>
When you write scripts, you can use <app>Zenity</app> to create simple dialogs that interact graphically with the user, as follows:
</p>
<list>
<item>
<p>
You can create a dialog to obtain information from the user. For example, you can prompt the user to select a date from a calendar dialog, or to select a file from a file selection dialog.
</p>
</item>
<item>
<p>
You can create a dialog to provide the user with information. For example, you can use a progress dialog to indicate the current status of an operation, or use a warning message dialog to alert the user.
</p>
</item>
</list>
<p>
When the user closes the dialog, <app>Zenity</app> prints the text produced by the dialog to standard output.
</p>
<note>
<p>
When you write <app>Zenity</app> commands, ensure that you place quotation marks around each argument.
</p>
<p>For example, use:</p>
<screen>zenity --calendar --title="Holiday Planner"</screen>
<p>Do not use:</p>
<screen>zenity --calendar --title=Holiday Planner</screen>
<p>
If you do not use quotation marks, you might get unexpected results.
</p>
</note>
<section id="zenity-usage-mnemonics">
<title>Access Keys</title>
<p>
An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined letter on a menu or dialog option.
</p>
<p>
Some <app>Zenity</app> dialogs support the use of access keys. To specify the character to use as the access key, place an underscore before that character in the text of the dialog. The following example shows how to specify the letter 'C' as the access key:
</p>
<screen><input>"_Choose a name".</input></screen>
</section>
<section id="zenity-usage-exitcodes">
<title>Exit Codes</title>
<p>
Zenity returns the following exit codes:
</p>
<table frame="all" rules="all">
<thead>
<tr>
<td>
<p>Exit Code</p></td>
<td>
<p>Description</p></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<p><var>0</var></p>
</td>
<td>
<p>The user has pressed either <gui style="button">OK</gui> or <gui style="button">Close</gui>.</p>
</td>
</tr>
<tr>
<td>
<p><var>1</var></p>
</td>
<td>
<p>The user has either pressed <gui style="button">Cancel</gui>, or used the window functions to close the dialog.</p>
</td>
</tr>
<tr>
<td>
<p><var>-1</var></p>
</td>
<td>
<p>An unexpected error has occurred.</p>
</td>
</tr>
<tr>
<td>
<p><var>5</var></p>
</td>
<td>
<p>The dialog has been closed because the timeout has been reached.</p>
</td>
</tr>
</tbody>
</table>
</section>
<!-- ==== General Options ====== -->
<section id="zenity-usage-general-options">
<title>General Options</title>
<p>
All Zenity dialogs support the following general options:
</p>
<terms>
<item>
<title><cmd>--title</cmd>=<var>title</var></title>
<p>Specifies the title of a dialog.</p>
</item>
<item>
<title><cmd>--window-icon</cmd>=<var>icon_path</var></title>
<p>Specifies the icon that is displayed in the window frame of the dialog. There are
4 stock icons also available by providing the following keywords - 'info', 'warning', 'question' and
'error'.
</p>
</item>
<item>
<title><cmd>--width</cmd>=<var>width</var></title>
<p>Specifies the width of the dialog.</p>
</item>
<item>
<title><cmd>--height</cmd>=<var>height</var></title>
<p>Specifies the height of the dialog.</p>
</item>
<item>
<title><cmd>--timeout</cmd>=<var>timeout</var></title>
<p>Specifies the timeout in seconds after which the dialog is closed.</p>
</item>
</terms>
</section>
<!-- ==== Miscellaneous Options ====== -->
<section id="zenity-help-options">
<title>Help Options</title>
<p>
Zenity provides the following help options:
</p>
<terms>
<item>
<title><cmd>--help</cmd></title>
<p>Displays shortened help text.</p>
</item>
<item>
<title><cmd>--help-all</cmd></title>
<p>Displays full help text for all dialogs.</p>
</item>
<item>
<title><cmd>--help-general</cmd></title>
<p>Displays help text for general dialog options.</p>
</item>
<item>
<title><cmd>--help-calendar</cmd></title>
<p>Displays help text for calendar dialog options.</p>
</item>
<item>
<title><cmd>--help-entry</cmd></title>
<p>Displays help text for text entry dialog options.</p>
</item>
<item>
<title><cmd>--help-error</cmd></title>
<p>Displays help text for error dialog options.</p>
</item>
<item>
<title><cmd>--help-info</cmd></title>
<p>Displays help text for information dialog options.</p>
</item>
<item>
<title><cmd>--help-file-selection</cmd></title>
<p>Displays help text for file selection dialog options.</p>
</item>
<item>
<title><cmd>--help-list</cmd></title>
<p>Displays help text for list dialog options.</p>
</item>
<item>
<title><cmd>--help-notification</cmd></title>
<p>Displays help text for notification icon options.</p>
</item>
<item>
<title><cmd>--help-progress</cmd></title>
<p>Displays help text for progress dialog options.</p>
</item>
<item>
<title><cmd>--help-question</cmd></title>
<p>Displays help text for question dialog options.</p>
</item>
<item>
<title><cmd>--help-warning</cmd></title>
<p>Displays help text for warning dialog options.</p>
</item>
<item>
<title><cmd>--help-text-info</cmd></title>
<p>Displays help for text information dialog options.</p>
</item>
<item>
<title><cmd>--help-misc</cmd></title>
<p>Displays help for miscellaneous options.</p>
</item>
<item>
<title><cmd>--help-gtk</cmd></title>
<p>Displays help for GTK+ options.</p>
</item>
</terms>
</section>
<!-- ==== Miscellaneous Options ====== -->
<section id="zenity-miscellaneous-options">
<title>Miscellaneous Options</title>
<p>
Zenity also provides the following miscellaneous options:
</p>
<terms>
<item>
<title><cmd>--about</cmd></title>
<p>Displays the <gui>About Zenity</gui> dialog, which contains Zenity version information, copyright information, and developer information.</p>
</item>
<item>
<title><cmd>--version</cmd></title>
<p>Displays the version number of Zenity.</p>
</item>
</terms>
</section>
<!-- ==== GTK+ Options ====== -->
<section id="zenity-gtk-options">
<title>GTK+ Options</title>
<p>
Zenity supports the standard GTK+ options. For more information about the GTK+ options, execute the <cmd>zenity --help-gtk</cmd> command.
</p>
</section>
<!-- ==== Environment variables ==== -->
<section id="zenity-environment-variables">
<title>Environment Variables</title>
<p>
Normally, Zenity detects the terminal window from which it was launched
and keeps itself above that window. This behavior can be disabled by
unsetting the <var>WINDOWID</var> environment variable.
</p>
</section>
</page>

View File

@ -1,30 +0,0 @@
<page xmlns="http://projectmallard.org/1.0/"
type="topic"
id="warning">
<info>
<link type="guide" xref="message"/>
<desc>Use the <cmd>--warning</cmd> option.</desc>
<include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
</info>
<title>Warning Dialog</title>
<p>
Use the <cmd>--warning</cmd> option to create a warning dialog.
</p>
<p>
The following example script shows how to create a warning dialog:
</p>
<code>
#!/bin/bash
zenity --warning \
--text="Disconnect the power cable to avoid electrical shock."
</code>
<figure>
<title>Warning Dialog Example</title>
<desc><app>Zenity</app> warning dialog example</desc>
<media type="image" mime="image/png" src="figures/zenity-warning-screenshot.png"/>
</figure>
</page>

View File

@ -1,331 +0,0 @@
2009-04-07 Simos Xenitellis <simos@gnome.org>
* el/figures/zenity-question-screenshot.png:
Updated screenshot by Fotis Tsamis.
2009-04-06 Simos Xenitellis <simos@gnome.org>
* el/el.po: Added Greek translation by Sterios Prosiniklis.
2009-04-04 Simos Xenitellis <simos@gnome.org>
* el/figures/*.png: Added 11 screenshots by Fotis Tsamis.
2009-03-16 Lucas Rocha <lucasr@gnome.org>
* 2.26.0 version marker.
2009-03-14 Philip Withnall <philip@tecnocode.co.uk>
* en_GB/en_GB.po: Updated British English translation by Jen Ockwell
<jenfraggleubuntu@gmail.com>.
2009-02-27 Tommi Vainikainen <thv@iki.fi>
* fi.po: Updated Finnish translation.
2009-02-17 Inaki Larranaga Murgoitio <dooteo@euskalgnu.org>
* eu/figures/: Added image in Basque language. Images are:
zenity-entry-screenshot.png
zenity-error-screenshot.png
zenity-warning-screenshot.png
zenity-progress-screenshot.png
zenity-calendar-screenshot.png
zenity-notification-screenshot.png
zenity-information-screenshot.png
zenity-question-screenshot.png
zenity-list-screenshot.png
zenity-fileselection-screenshot.png
zenity-text-screenshot.png
2009-02-16 Inaki Larranaga Murgoitio <dooteo@euskalgnu.org>
* eu/eu.po: Added Basque translation.
* Makefile.am: Added 'eu' to DOC_LINGUAS.
2009-02-15 Daniel Nylander <po@danielnylander.se>
* sv/sv.po: Updated Swedish translation.
* sv/figures/*png: Updated screenshots.
2009-02-06 Claude Paroz <claude@2xlibre.net>
* fr/fr.po: Updated French translation.
2009-01-31 Mario Blättermann <mariobl@svn.gnome.org>
* de/de.po: Updated German translation.
2009-01-12 Lucas Rocha <lucasr@gnome.org>
* 2.24.1 version marker.
2009-01-10 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* es/es.po: Updated Spanish translation.
==================== 2.24.0 ====================
2008-09-18 Tommi Vainikainen <thv@iki.fi>
* Makefile.am, fi/fi.po: Added Finnish translation
* fi/figures/*.png: Added screenshots
* fi/l10n_scripts/*: Added translated screenshot scripts
2008-09-12 Mario Blättermann <mariobl@svn.gnome.org>
* de/de.po: Deleted unneeded fuzzies in German translation
2008-09-12 Mario Blättermann <mariobl@svn.gnome.org>
* de/de.po: Added German translation
* de/figures/*.png: Added screenshots
* de/l10n_scripts/*: Added customized scripts
2008-06-16 Lucas Rocha <lucasr@gnome.org>
* 2.23.3.1 version marker.
2008-06-16 Lucas Rocha <lucasr@gnome.org>
* 2.23.3 version marker.
2008-06-03 Lucas Rocha <lucasr@gnome.org>
* 2.23.2 version marker.
2008-04-21 Lucas Rocha <lucasr@gnome.org>
* 2.23.1 version marker.
2008-03-10 Lucas Rocha <lucasr@gnome.org>
* 2.22.0 version marker.
2008-03-08 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* es/es.po: Updated Spanish translation
* es/figures/*.png: Updated screenshots
2008-02-25 Lucas Rocha <lucasr@gnome.org>
* 2.21.1 version marker.
2008-01-20 Yannig Marchegay <yannig@marchegay.org>
* oc.po: Updated Occitan translation.
2007-12-31 Yannig Marchegay <yannig@marchegay.org>
* oc.po: Updated Occitan translation.
2007-11-28 Yannig Marchegay <yannig@marchegay.org>
* oc/oc.po: Updated Occitan translation.
2007-09-17 Lucas Rocha <lucasr@gnome.org>
* 2.20.0 version marker.
2007-08-15 Daniel Nylander <po@danielnylander.se>
* sv/figures/*png: Updated screenshots.
2007-08-13 Lucas Rocha <lucasr@gnome.org>
* 2.19.2 version marker.
2007-05-15 David Lodge <dave@cirt.net>
* en_GB/en_GB.po: Added (British) English translation.
* Makefile.am: Added en_GB to DOC_LINGUAS
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* 2.19.1 version marker.
2007-04-22 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* Makefile.am:
* ru/ru.po: Added Russian translation by
Yury Deshko <deshko@tut.by>.
2007-04-21 Jorge Gonzalez <jorgegonz@svn.gnome.org>
* es/es.po: Updated Spanish translation.
2007-04-09 Lucas Rocha <lucasr@gnome.org>
* 2.18.1 version marker.
2007-03-11 Lucas Rocha <lucasr@gnome.org>
* 2.18.0 version marker.
2007-03-01 Maxim Dziumanenko <dziumanenko@gmail.com>
* uk/uk.po:
* uk/figures/*.png: Update Ukrainian translation.
2007-02-26 Lucas Rocha <lucasr@gnome.org>
* 2.17.92 version marker.
2007-02-12 Lucas Rocha <lucasr@gnome.org>
* 2.17.91 version marker.
2007-01-22 Lucas Rocha <lucasr@gnome.org>
* 2.17.90 version marker.
2007-01-08 Lucas Rocha <lucasr@gnome.org>
* 2.17.3 version marker.
2006-12-18 Lucas Rocha <lucasr@gnome.org>
* 2.17.2 version marker.
2006-12-04 Lucas Rocha <lucasr@gnome.org>
* 2.17.1 version marker.
2006-10-26 Daniel Nylander <po@danielnylander.se>
* sv/sv.po: Added Swedish translation.
* sv/figures/*png: Added screenshots.
* Makefile.am: Added sv to DOC_LINGUAS.
2006-09-23 Francisco Javier F. Serrador <serrador@openshine.com>
* es/es.po: Updated Spanish translation.
2006-09-04 Lucas Rocha <lucasr@gnome.org>
* 2.16.0 version marker.
2006-08-21 Lucas Rocha <lucasr@gnome.org>
* 2.15.92 version marker.
2006-08-10 Christophe Bliard <christophe.bliard@trux.info>
* fr/fr.po: Updated French translation.
2006-08-07 Lucas Rocha <lucasr@gnome.org>
* 2.15.91 version marker.
2006-07-28 Lucas Rocha <lucasr@gnome.org>
* 2.15.90 version marker.
2006-05-16 Lucas Rocha <lucasr@gnome.org>
* 2.15.2 version marker.
2006-04-24 Lucas Rocha <lucasr@gnome.org>
* 2.15.1 version marker.
2006-03-17 Maxim Dziumanenko <mvd@mylinux.ua>
* help/C/figures/*: Restore original english screenshots
mistakenly replaced by Ukrainian screenshots on 2005-08-21
* uk/uk.po:
* uk/figures/*.png: Update Ukrainian translation.
2006-03-13 Lucas Rocha <lucasr@gnome.org>
* 2.14.0 version marker.
2006-03-01 Alexander Shopov <ash@contact.bg>
* Makefile.am
* bg/bg.po
* bg/figures/zenity-calendar-screenshot.png
* bg/figures/zenity-entry-screenshot.png
* bg/figures/zenity-error-screenshot.png
* bg/figures/zenity-fileselection-screenshot.png
* bg/figures/zenity-information-screenshot.png
* bg/figures/zenity-list-screenshot.png
* bg/figures/zenity-notification-screenshot.png
* bg/figures/zenity-progress-screenshot.png
* bg/figures/zenity-question-screenshot.png
* bg/figures/zenity-text-screenshot.png
* bg/figures/zenity-warning-screenshot.png
Added Bulgarian translation by
Rostislav Raykov <zbrox@i-space.org>
2006-01-29 Lucas Rocha <lucasr@gnome.org>
* 2.13.90 version marker.
2006-01-21 Vincent Untz <vuntz@gnome.org>
* fr/fr.po: updated french translation.
* *: .cvsignore love
2006-01-16 Lucas Rocha <lucasr@gnome.org>
* 2.13.5 version marker.
2006-01-05 Lucas Rocha <lucasr@gnome.org>
* 2.13.4 version marker.
2005-12-12 Lucas Rocha <lucasr@gnome.org>
* 2.13.3 version marker.
2005-11-19 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es/es.po: Updated Spanish translation.
2005-11-13 Lucas Rocha <lucasr@cvs.gnome.org>
* 2.13.2 version marker.
2005-10-24 Lucas Rocha <lucasr@cvs.gnome.org>
* 2.13.1 version marker.
2005-09-06 Lucas Rocha <lucasr@cvs.gnome.org>
* 2.12.0 version marker.
2005-08-29 Vincent Untz <vuntz@gnome.org>
* fr/fr.po: updated french translation.
2005-08-27 Vincent Untz <vuntz@gnome.org>
* fr/fr.po: forgot some headers
2005-08-27 Vincent Untz <vuntz@gnome.org>
* Makefile.am:
* fr/*: add french translation, by Christophe Bliard
<cbliard@gmail.com>
2005-08-23 Lucas Rocha <lucasr@cvs.gnome.org>
* 2.11.92 version marker.
2005-08-21 Maxim Dziumanenko <mvd@mylinux.ua>
* uk/uk.po: Added Ukrainian translation.
2005-08-17 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es/figures/*.png: Added Missing figures.
2005-08-10 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es/es.po: Added Spanish documentation.
2005-07-24 Lucas Rocha <lucasr@cvs.gnome.org>
* ChangeLog: added ChangeLog here.

View File

@ -1 +0,0 @@
bg ca cs da de el en_GB es eu fi fr gl hu ja oc pl pt_BR ru sl sv uk zh_CN

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More