~ubuntu-branches/ubuntu/precise/zenity/precise-updates

« back to all changes in this revision

Viewing changes to help/sl/zenity.xml

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-29 14:50:15 UTC
  • mfrom: (1.1.45)
  • Revision ID: package-import@ubuntu.com-20120329145015-p6jkb44cf19r2qyi
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Add support for lists and trees with --forms
  - Fix warning reading list from stdin
* debian/zenity-common.install:
  - Doesn't install omf files anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
3
 
<!ENTITY author1 "Sun">
4
 
<!ENTITY author2 "Java Desktop System Documentation Team">
5
 
<!ENTITY publisher "Sun Microsystems, Inc.">
6
 
<!ENTITY legal SYSTEM "legal.xml">
7
 
<!ENTITY appversion "2.6.0">
8
 
<!ENTITY app "<application>Zenity</application>">
9
 
<!ENTITY appname "Zenity">
10
 
<!ENTITY date "August 2004">
11
 
<!ENTITY manrevision "2.0">
12
 
]>
13
 
<!-- ================ Document Header ================= -->
14
 
<article id="index" lang="sl">
15
 
 
16
 
  <articleinfo>
17
 
    <title>Zenity Manual</title>
18
 
    <subtitle>Zenity Desktop Application Manual V2.0</subtitle>
19
 
    <copyright>
20
 
            <year>2003</year>
21
 
            <year>2004</year>
22
 
            <holder>Sun Microsystems, Inc.</holder>
23
 
    </copyright>
24
 
 
25
 
    <!-- Translators: uncomment this
26
 
    <copyright>
27
 
            <year>2004</year>
28
 
            <holder>ME_THE_TRANSLATOR</holder>
29
 
    </copyright>
30
 
    -->
31
 
 
32
 
    <publisher>
33
 
            <publishername>Sun Microsystems, Inc.</publishername>
34
 
    </publisher>
35
 
 
36
 
      <legalnotice id="legalnotice">
37
 
        <para>
38
 
          Permission is granted to copy, distribute and/or modify this
39
 
          document under the terms of the GNU Free Documentation
40
 
          License (GFDL), Version 1.1 or any later version published
41
 
          by the Free Software Foundation with no Invariant Sections,
42
 
          no Front-Cover Texts, and no Back-Cover Texts.  You can find
43
 
          a copy of the GFDL at this <ulink type="help" url="ghelp:fdl">link</ulink> or in the file COPYING-DOCS
44
 
          distributed with this manual.
45
 
         </para>
46
 
         <para> This manual is part of a collection of GNOME manuals
47
 
          distributed under the GFDL.  If you want to distribute this
48
 
          manual separately from the collection, you can do so by
49
 
          adding a copy of the license to the manual, as described in
50
 
          section 6 of the license.
51
 
        </para>
52
 
 
53
 
        <para>
54
 
          Many of the names used by companies to distinguish their
55
 
          products and services are claimed as trademarks. Where those
56
 
          names appear in any GNOME documentation, and the members of
57
 
          the GNOME Documentation Project are made aware of those
58
 
          trademarks, then the names are in capital letters or initial
59
 
          capital letters.
60
 
        </para>
61
 
 
62
 
        <para>
63
 
          DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT ARE PROVIDED
64
 
          UNDER  THE TERMS OF THE GNU FREE DOCUMENTATION LICENSE
65
 
          WITH THE FURTHER UNDERSTANDING THAT:
66
 
 
67
 
          <orderedlist>
68
 
                <listitem>
69
 
                  <para>DOCUMENT IS PROVIDED ON AN "AS IS" BASIS,
70
 
                    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
71
 
                    IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
72
 
                    THAT THE DOCUMENT OR MODIFIED VERSION OF THE
73
 
                    DOCUMENT IS FREE OF DEFECTS MERCHANTABLE, FIT FOR
74
 
                    A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE
75
 
                    RISK AS TO THE QUALITY, ACCURACY, AND PERFORMANCE
76
 
                    OF THE DOCUMENT OR MODIFIED VERSION OF THE
77
 
                    DOCUMENT IS WITH YOU. SHOULD ANY DOCUMENT OR
78
 
                    MODIFIED VERSION PROVE DEFECTIVE IN ANY RESPECT,
79
 
                    YOU (NOT THE INITIAL WRITER, AUTHOR OR ANY
80
 
                    CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
81
 
                    SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
82
 
                    OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
83
 
                    LICENSE. NO USE OF ANY DOCUMENT OR MODIFIED
84
 
                    VERSION OF THE DOCUMENT IS AUTHORIZED HEREUNDER
85
 
                    EXCEPT UNDER THIS DISCLAIMER; AND
86
 
                  </para>
87
 
                </listitem>
88
 
                <listitem>
89
 
                  <para>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL
90
 
                       THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE),
91
 
                       CONTRACT, OR OTHERWISE, SHALL THE AUTHOR,
92
 
                       INITIAL WRITER, ANY CONTRIBUTOR, OR ANY
93
 
                       DISTRIBUTOR OF THE DOCUMENT OR MODIFIED VERSION
94
 
                       OF THE DOCUMENT, OR ANY SUPPLIER OF ANY OF SUCH
95
 
                       PARTIES, BE LIABLE TO ANY PERSON FOR ANY
96
 
                       DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
97
 
                       CONSEQUENTIAL DAMAGES OF ANY CHARACTER
98
 
                       INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS
99
 
                       OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR
100
 
                       MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR
101
 
                       LOSSES ARISING OUT OF OR RELATING TO USE OF THE
102
 
                       DOCUMENT AND MODIFIED VERSIONS OF THE DOCUMENT,
103
 
                       EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF
104
 
                       THE POSSIBILITY OF SUCH DAMAGES.
105
 
                  </para>
106
 
                </listitem>
107
 
          </orderedlist>
108
 
        </para>
109
 
  </legalnotice>
110
 
 
111
 
 
112
 
 
113
 
    <authorgroup>
114
 
      <author>
115
 
        <firstname>Sun</firstname>
116
 
        <surname>Java Desktop System Documentation Team</surname>
117
 
        <affiliation><orgname>Sun Microsystems, Inc.</orgname></affiliation>
118
 
      </author>
119
 
      <author role="maintainer">
120
 
        <firstname>Glynn</firstname>
121
 
        <surname>Foster</surname>
122
 
        <affiliation>
123
 
          <orgname>GNOME Documentation Project</orgname>
124
 
        </affiliation>
125
 
      </author>
126
 
      <editor>
127
 
        <firstname>Nicholas</firstname>
128
 
        <surname>Curran</surname>
129
 
        <affiliation>
130
 
          <orgname>GNOME Documentation Project</orgname>
131
 
        </affiliation>
132
 
      </editor>
133
 
    </authorgroup>
134
 
 
135
 
    <revhistory>
136
 
      <revision>
137
 
        <revnumber>Zenity Desktop Application Manual V2.0</revnumber>
138
 
        <date>August 2004</date>
139
 
        <revdescription>
140
 
          <para role="author">Sun Java Desktop System Documentation Team</para>
141
 
          <para role="publisher">Sun Microsystems, Inc.</para>
142
 
        </revdescription>
143
 
      </revision>
144
 
 
145
 
      <revision>
146
 
        <revnumber>Zenity Manual V1.0</revnumber>
147
 
        <date>January 2003</date>
148
 
        <revdescription>
149
 
          <para role="author">Glynn Foster</para>
150
 
          <para role="publisher"> GNOME Documentation Project </para>
151
 
        </revdescription>
152
 
      </revision>
153
 
    </revhistory>
154
 
 
155
 
    <releaseinfo>This manual describes version 2.6.0 of Zenity.
156
 
    </releaseinfo>
157
 
 
158
 
    <legalnotice>
159
 
            <title>Odziv</title>
160
 
            <para>
161
 
              To send feedback, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">Feedback Page</ulink>.
162
 
            </para>
163
 
<!-- Translators may also add here feedback address for translations -->
164
 
 
165
 
    </legalnotice>
166
 
    <abstract role="description">
167
 
            <para>Zenity is a rewrite of gdialog, the GNOME port of dialog which allows you to 
168
 
                  display dialog boxes from the commandline and shell scripts.
169
 
            </para>
170
 
    </abstract>
171
 
  </articleinfo>
172
 
  
173
 
  <indexterm>
174
 
    <primary>zenity command</primary>
175
 
  </indexterm>
176
 
  <indexterm>
177
 
    <primary>dialog creator</primary>
178
 
  </indexterm>
179
 
<!-- ================ Document Body ================= -->
180
 
 
181
 
<!-- ==== Introduction ====== -->
182
 
 
183
 
  <sect1 id="zenity-introduction">
184
 
    <title>Introduction</title>
185
 
 
186
 
    <para>
187
 
        <application>Zenity</application> enables you to create the following types of simple dialog:
188
 
    </para>
189
 
 
190
 
    <itemizedlist>
191
 
        <listitem><para>Koledar</para></listitem>
192
 
        <listitem><para>File selection</para></listitem>
193
 
        <listitem><para>Seznam</para></listitem>
194
 
        <listitem><para>Notification icon</para></listitem>
195
 
        <listitem><para>Sporočilo</para>
196
 
            <itemizedlist>
197
 
                <listitem><para>Napaka</para></listitem>
198
 
                <listitem><para>Podrobnosti</para></listitem>
199
 
                <listitem><para>Vprašanje</para></listitem>
200
 
                <listitem><para>Opozorilo</para></listitem>
201
 
            </itemizedlist>
202
 
        </listitem>
203
 
        <listitem><para>Napredek</para></listitem>
204
 
        <listitem><para>Vnos besedila</para></listitem>
205
 
        <listitem><para>Text information</para></listitem>
206
 
    </itemizedlist>
207
 
 
208
 
  </sect1>
209
 
 
210
 
<!-- ==== Usage ====== -->
211
 
 
212
 
  <sect1 id="zenity-usage">
213
 
    <title>Uporaba</title>
214
 
 
215
 
    <para>
216
 
        When you write scripts, you can use <application>Zenity</application> to create simple dialogs that interact graphically with the user, as follows:
217
 
    </para>
218
 
    <itemizedlist>
219
 
      <listitem>
220
 
        <para>
221
 
            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.
222
 
        </para>
223
 
      </listitem>
224
 
      <listitem>
225
 
        <para>
226
 
            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.
227
 
        </para>
228
 
      </listitem>
229
 
    </itemizedlist>
230
 
    <para>
231
 
        When the user closes the dialog, <application>Zenity</application> prints the text produced by the dialog to standard output.
232
 
    </para>
233
 
 
234
 
    <note>
235
 
      <para>
236
 
        When you write <application>Zenity</application> commands, ensure that you place quotation marks around each argument. 
237
 
      </para>
238
 
      <para>
239
 
        For example, use: <screen><userinput><command>zenity --calendar --title="Holiday Planner"</command></userinput></screen> Do not use: <screen><userinput><command>zenity --calendar --title=Holiday Planner</command></userinput></screen>
240
 
      </para>
241
 
      <para>
242
 
        If you do not use quotation marks, you might get unexpected results.
243
 
      </para>
244
 
    </note>
245
 
 
246
 
    <sect2 id="zenity-usage-mnemonics">
247
 
      <title>Access Keys</title>
248
 
        <para>
249
 
          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.
250
 
        </para>
251
 
        <para>
252
 
          Some <application>Zenity</application> 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:
253
 
        </para>
254
 
        <screen><userinput>"_Choose a name".</userinput></screen>
255
 
    </sect2>
256
 
 
257
 
    <sect2 id="zenity-usage-exitcodes">
258
 
      <title>Exit Codes</title>
259
 
    <para>
260
 
        <application>Zenity</application> returns the following exit codes:
261
 
    </para>
262
 
 
263
 
    <informaltable frame="all">
264
 
      <tgroup cols="2" colsep="1" rowsep="1">
265
 
        <colspec colname="COLSPEC0" colwidth="50*"/>
266
 
        <colspec colname="COLSPEC1" colwidth="50*"/>
267
 
        <thead>
268
 
          <row valign="top">
269
 
            <entry colname="COLSPEC0">
270
 
              <para>Exit Code</para></entry>
271
 
            <entry colname="COLSPEC1">
272
 
              <para>Description</para></entry>
273
 
          </row>
274
 
        </thead>
275
 
        <tbody>
276
 
          <row valign="top">
277
 
            <entry>
278
 
              <para><varname>0</varname></para>
279
 
            </entry>
280
 
            <entry>
281
 
              <para>The user has pressed either <guibutton>OK</guibutton> or <guibutton>Close</guibutton>.</para>
282
 
            </entry>
283
 
          </row>
284
 
          <row valign="top">
285
 
            <entry>
286
 
              <para><varname>1</varname></para>
287
 
            </entry>
288
 
            <entry>
289
 
              <para>The user has either pressed <guibutton>Cancel</guibutton>, or used the window functions to close the dialog.</para>
290
 
            </entry>
291
 
          </row>
292
 
          <row valign="top">
293
 
            <entry>
294
 
              <para><varname>-1</varname></para>
295
 
            </entry>
296
 
            <entry>
297
 
              <para>An unexpected error has occurred.</para>
298
 
            </entry>
299
 
          </row>
300
 
          <row valign="top">
301
 
            <entry>
302
 
              <para><varname>5</varname></para>
303
 
            </entry>
304
 
            <entry>
305
 
              <para>The dialog has been closed because the timeout has been reached.</para>
306
 
            </entry>
307
 
          </row>
308
 
        </tbody>
309
 
      </tgroup>
310
 
    </informaltable>
311
 
 
312
 
    </sect2>
313
 
 
314
 
 
315
 
  <!-- ==== General Options ====== -->
316
 
 
317
 
  <sect2 id="zenity-usage-general-options">
318
 
    <title>General Options</title>
319
 
 
320
 
    <para>
321
 
        All <application>Zenity</application> dialogs support the following general options:
322
 
    </para>
323
 
 
324
 
    <variablelist>
325
 
 
326
 
      <varlistentry>
327
 
        <term><option>--title</option>=<replaceable>title</replaceable></term>
328
 
        <listitem>
329
 
          <para>Specifies the title of a dialog.</para>
330
 
        </listitem>
331
 
      </varlistentry>
332
 
 
333
 
      <varlistentry>
334
 
        <term><option>--window-icon</option>=<replaceable>icon_path</replaceable></term>
335
 
        <listitem>
336
 
          <para>Specifies the icon that is displayed in the window frame of the dialog. There are
337
 
                4 stock icons also available by providing the following keywords - 'info', 'warning', 'question' and
338
 
                'error'.
339
 
          </para>
340
 
        </listitem>
341
 
      </varlistentry>
342
 
 
343
 
      <varlistentry>
344
 
        <term><option>--width</option>=<replaceable>width</replaceable></term>
345
 
        <listitem>
346
 
          <para>Specifies the width of the dialog.</para>
347
 
        </listitem>
348
 
      </varlistentry>
349
 
 
350
 
      <varlistentry>
351
 
        <term><option>--height</option>=<replaceable>height</replaceable></term>
352
 
        <listitem>
353
 
          <para>Specifies the height of the dialog.</para>
354
 
        </listitem>
355
 
      </varlistentry>
356
 
 
357
 
      <varlistentry>
358
 
        <term><option>--timeout</option>=<replaceable>timeout</replaceable></term>
359
 
        <listitem>
360
 
          <para>Specifies the timeout in seconds after which the dialog is closed.</para>
361
 
        </listitem>
362
 
      </varlistentry>
363
 
 
364
 
    </variablelist>
365
 
 
366
 
  </sect2>
367
 
 
368
 
<!-- ==== Miscellaneous Options ====== -->
369
 
 
370
 
  <sect2 id="zenity-help-options">
371
 
    <title>Help Options</title>
372
 
 
373
 
    <para>
374
 
        <application>Zenity</application> provides the following help options:
375
 
    </para>
376
 
 
377
 
    <variablelist>
378
 
 
379
 
      <varlistentry>
380
 
        <term><option>--help</option></term>
381
 
        <listitem>
382
 
          <para>Displays shortened help text.</para>
383
 
        </listitem>
384
 
      </varlistentry>
385
 
 
386
 
      <varlistentry>
387
 
        <term><option>--help-all</option></term>
388
 
        <listitem>
389
 
          <para>Displays full help text for all dialogs.</para>
390
 
        </listitem>
391
 
      </varlistentry>
392
 
 
393
 
      <varlistentry>
394
 
        <term><option>--help-general</option></term>
395
 
        <listitem>
396
 
          <para>Displays help text for general dialog options.</para>
397
 
        </listitem>
398
 
      </varlistentry>
399
 
 
400
 
      <varlistentry>
401
 
        <term><option>--help-calendar</option></term>
402
 
        <listitem>
403
 
          <para>Displays help text for calendar dialog options.</para>
404
 
        </listitem>
405
 
      </varlistentry>
406
 
 
407
 
      <varlistentry>
408
 
        <term><option>--help-entry</option></term>
409
 
        <listitem>
410
 
          <para>Displays help text for text entry dialog options.</para>
411
 
        </listitem>
412
 
      </varlistentry>
413
 
 
414
 
      <varlistentry>
415
 
        <term><option>--help-error</option></term>
416
 
        <listitem>
417
 
          <para>Displays help text for error dialog options.</para>
418
 
        </listitem>
419
 
      </varlistentry>
420
 
 
421
 
      <varlistentry>
422
 
        <term><option>--help-info</option></term>
423
 
        <listitem>
424
 
          <para>Displays help text for information dialog options.</para>
425
 
        </listitem>
426
 
      </varlistentry>
427
 
 
428
 
      <varlistentry>
429
 
        <term><option>--help-file-selection</option></term>
430
 
        <listitem>
431
 
          <para>Displays help text for file selection dialog options.</para>
432
 
        </listitem>
433
 
      </varlistentry>
434
 
 
435
 
      <varlistentry>
436
 
        <term><option>--help-list</option></term>
437
 
        <listitem>
438
 
          <para>Displays help text for list dialog options.</para>
439
 
        </listitem>
440
 
      </varlistentry>
441
 
 
442
 
      <varlistentry>
443
 
        <term><option>--help-notification</option></term>
444
 
        <listitem>
445
 
          <para>Displays help text for notification icon options.</para>
446
 
        </listitem>
447
 
      </varlistentry>
448
 
 
449
 
      <varlistentry>
450
 
        <term><option>--help-progress</option></term>
451
 
        <listitem>
452
 
          <para>Displays help text for progress dialog options.</para>
453
 
        </listitem>
454
 
      </varlistentry>
455
 
 
456
 
      <varlistentry>
457
 
        <term><option>--help-question</option></term>
458
 
        <listitem>
459
 
          <para>Displays help text for question dialog options.</para>
460
 
        </listitem>
461
 
      </varlistentry>
462
 
 
463
 
      <varlistentry>
464
 
        <term><option>--help-warning</option></term>
465
 
        <listitem>
466
 
          <para>Displays help text for warning dialog options.</para>
467
 
        </listitem>
468
 
      </varlistentry>
469
 
 
470
 
      <varlistentry>
471
 
        <term><option>--help-text-info</option></term>
472
 
        <listitem>
473
 
          <para>Displays help for text information dialog options.</para>
474
 
        </listitem>
475
 
      </varlistentry>
476
 
 
477
 
      <varlistentry>
478
 
        <term><option>--help-misc</option></term>
479
 
        <listitem>
480
 
          <para>Displays help for miscellaneous options.</para>
481
 
        </listitem>
482
 
      </varlistentry>
483
 
 
484
 
      <varlistentry>
485
 
        <term><option>--help-gtk</option></term>
486
 
        <listitem>
487
 
          <para>Displays help for GTK+ options.</para>
488
 
        </listitem>
489
 
      </varlistentry>
490
 
 
491
 
    </variablelist>
492
 
 
493
 
  </sect2>
494
 
 
495
 
<!-- ==== Miscellaneous Options ====== -->
496
 
 
497
 
  <sect2 id="zenity-miscellaneous-options">
498
 
    <title>Miscellaneous Options</title>
499
 
 
500
 
    <para>
501
 
        <application>Zenity</application> also provides the following miscellaneous options:
502
 
    </para>
503
 
 
504
 
    <variablelist>
505
 
 
506
 
      <varlistentry>
507
 
        <term><option>--about</option></term>
508
 
        <listitem>
509
 
          <para>Displays the <guilabel>About Zenity</guilabel> dialog, which contains <application>Zenity</application> version information, copyright information, and developer information.</para>
510
 
        </listitem>
511
 
      </varlistentry>
512
 
 
513
 
      <varlistentry>
514
 
        <term><option>--version</option></term>
515
 
        <listitem>
516
 
          <para>Displays the version number of <application>Zenity</application>.</para>
517
 
        </listitem>
518
 
      </varlistentry>
519
 
 
520
 
    </variablelist>
521
 
 
522
 
  </sect2>
523
 
 
524
 
<!-- ==== GTK+ Options ====== -->
525
 
 
526
 
  <sect2 id="zenity-gtk-options">
527
 
    <title>GTK+ Options</title>
528
 
 
529
 
    <para>
530
 
        <application>Zenity</application> supports the standard GTK+ options. For more information about the GTK+ options, execute the <command>zenity -?</command> command.
531
 
    </para>
532
 
 
533
 
  </sect2>
534
 
 
535
 
<!-- ==== Environment variables ==== -->
536
 
 
537
 
  <sect2 id="zenity-environment-variables">
538
 
    <title>Environment Variables</title>
539
 
 
540
 
    <para>
541
 
      Normally, <application>Zenity</application> detects the terminal window from which it was launched
542
 
      and keeps itself above that window.  This behavior can be disabled by
543
 
      unsetting the <envar>WINDOWID</envar> environment variable.
544
 
    </para>
545
 
 
546
 
  </sect2>
547
 
 
548
 
  </sect1>
549
 
<!-- ==== Calendar Options ====== -->
550
 
 
551
 
  <sect1 id="zenity-calendar-options">
552
 
    <title>Calendar Dialog</title>
553
 
 
554
 
    <para>
555
 
        Use the <option>--calendar</option> option to create a calendar dialog. <application>Zenity</application> returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date.
556
 
    </para>
557
 
    <para>
558
 
        The calendar dialog supports the following options:
559
 
    </para>
560
 
 
561
 
    <variablelist>
562
 
 
563
 
      <varlistentry>
564
 
        <term><option>--text</option>=<replaceable>text</replaceable></term>
565
 
        <listitem>
566
 
          <para>Specifies the text that is displayed in the calendar dialog.</para>
567
 
        </listitem>
568
 
      </varlistentry>
569
 
        
570
 
      <varlistentry>
571
 
        <term><option>--day</option>=<replaceable>day</replaceable></term>
572
 
        <listitem>
573
 
          <para>Specifies the day that is selected in the calendar dialog. <replaceable>day</replaceable> must be a number between 1 and 31 inclusive.
574
 
          </para>
575
 
        </listitem>
576
 
      </varlistentry>
577
 
 
578
 
      <varlistentry>
579
 
        <term><option>--month</option>=<replaceable>month</replaceable></term>
580
 
        <listitem>
581
 
          <para>Specifies the month that is selected in the calendar dialog. <replaceable>month</replaceable> must be a number between 1 and 12 inclusive.
582
 
          </para>
583
 
        </listitem>
584
 
      </varlistentry>
585
 
 
586
 
      <varlistentry>
587
 
        <term><option>--year</option>=<replaceable>year</replaceable></term>
588
 
        <listitem>
589
 
          <para>Specifies the year that is selected in the calendar dialog.</para>
590
 
        </listitem>
591
 
      </varlistentry>
592
 
 
593
 
      <varlistentry>
594
 
        <term><option>--date-format</option>=<replaceable>format</replaceable></term>
595
 
        <listitem>
596
 
          <para>Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. <replaceable>format</replaceable> must be a format that is acceptable to the <command>strftime</command> function, for example <literal>%A %d/%m/%y</literal>.
597
 
          </para>
598
 
        </listitem>
599
 
      </varlistentry>
600
 
 
601
 
    </variablelist>
602
 
 
603
 
    <para>
604
 
      The following example script shows how to create a calendar dialog:
605
 
 
606
 
      <programlisting>
607
 
        #!/bin/sh
608
 
 
609
 
 
610
 
        if zenity --calendar \
611
 
        --title="Select a Date" \
612
 
        --text="Click on a date to select that date." \
613
 
        --day=10 --month=8 --year=2004
614
 
          then echo $?
615
 
          else echo "No date selected"
616
 
        fi
617
 
      </programlisting>
618
 
 
619
 
    </para>
620
 
 
621
 
    <figure id="zenity-calendar-screenshot">
622
 
      <title>Calendar Dialog Example</title>
623
 
      <screenshot>
624
 
        <mediaobject>
625
 
          <imageobject>
626
 
              <imagedata fileref="figures/zenity-calendar-screenshot.png" format="PNG"/>
627
 
          </imageobject>
628
 
          <textobject>
629
 
              <phrase><application>Zenity</application> calendar dialog example</phrase>
630
 
          </textobject>
631
 
        </mediaobject>
632
 
      </screenshot>
633
 
   </figure>
634
 
                                                                                                          
635
 
  </sect1>
636
 
 
637
 
 
638
 
<!-- ==== File Selection Options ====== -->
639
 
 
640
 
  <sect1 id="zenity-file-selection-options">
641
 
    <title>File Selection Dialog</title>
642
 
 
643
 
    <para>
644
 
        Use the <option>--file-selection</option> option to create a file selection dialog. <application>Zenity</application> returns the selected files or directories to standard 
645
 
        output. The default mode of the file selection dialog is open.
646
 
    </para>
647
 
    <para>
648
 
        The file selection dialog supports the following options:
649
 
    </para>
650
 
 
651
 
    <variablelist>
652
 
 
653
 
      <varlistentry>
654
 
        <term><option>--filename</option>=<replaceable>filename</replaceable></term>
655
 
        <listitem>
656
 
          <para>Specifies the file or directory that is selected in the file selection dialog when the dialog is first shown.</para>
657
 
        </listitem>
658
 
      </varlistentry>
659
 
 
660
 
      <varlistentry>
661
 
        <term><option>--multiple</option></term>
662
 
        <listitem>
663
 
          <para>Allows the selection of multiple filenames in the file selection dialog.</para>
664
 
        </listitem>
665
 
      </varlistentry>
666
 
 
667
 
      <varlistentry>
668
 
        <term><option>--directory</option></term>
669
 
        <listitem>
670
 
          <para>Allows only selection of directories in the file selection dialog.</para>
671
 
        </listitem>
672
 
      </varlistentry>
673
 
 
674
 
      <varlistentry>
675
 
        <term><option>--save</option></term>
676
 
        <listitem>
677
 
          <para>Set the file selection dialog into save mode.</para>
678
 
        </listitem>
679
 
      </varlistentry>
680
 
 
681
 
      <varlistentry>
682
 
        <term><option>--separator</option>=<replaceable>separator</replaceable></term>
683
 
        <listitem>
684
 
          <para>Specifies the string that is used to divide the returned list of filenames.</para>
685
 
        </listitem>
686
 
      </varlistentry>
687
 
 
688
 
    </variablelist>
689
 
 
690
 
    <para>
691
 
      The following example script shows how to create a file selection dialog:
692
 
 
693
 
      <programlisting>
694
 
        #!/bin/sh
695
 
 
696
 
        FILE=`zenity --file-selection --title="Select a File"`
697
 
 
698
 
        case $? in
699
 
                 0)
700
 
                        echo "\"$FILE\" selected.";;
701
 
                 1)
702
 
                        echo "No file selected.";;
703
 
                -1)
704
 
                        echo "No file selected.";;
705
 
        esac
706
 
      </programlisting>
707
 
    </para>
708
 
 
709
 
    <figure id="zenity-fileselection-screenshot">
710
 
      <title>File Selection Dialog Example</title>
711
 
      <screenshot>
712
 
        <mediaobject>
713
 
          <imageobject>
714
 
            <imagedata fileref="figures/zenity-fileselection-screenshot.png" format="PNG"/>
715
 
          </imageobject>
716
 
          <textobject>
717
 
            <phrase><application>Zenity</application> file selection dialog example</phrase>
718
 
          </textobject>
719
 
        </mediaobject>
720
 
      </screenshot>
721
 
    </figure>
722
 
 
723
 
  </sect1>
724
 
 
725
 
<!-- ==== Notification Options ====== -->
726
 
  <sect1 id="zenity-notification-options">
727
 
    <title>Notification Icon</title>
728
 
 
729
 
    <para>
730
 
    </para>
731
 
 
732
 
    <variablelist>
733
 
 
734
 
      <varlistentry>
735
 
        <term><option>--text</option>=<replaceable>text</replaceable></term>
736
 
        <listitem>
737
 
          <para>Specifies the text that is displayed in the notification area.</para>
738
 
        </listitem>
739
 
      </varlistentry>
740
 
 
741
 
    </variablelist>
742
 
 
743
 
    <para>
744
 
      The following example script shows how to create a notification icon:
745
 
      <programlisting>
746
 
        #!/bin/sh
747
 
 
748
 
        zenity --notification\
749
 
          --window-icon="info" \
750
 
          --text="There are system updates necessary!"
751
 
      </programlisting>
752
 
 
753
 
    </para>
754
 
 
755
 
    <figure id="zenity-notification-screenshot">
756
 
      <title>Notification Icon Example</title>
757
 
      <screenshot>
758
 
        <mediaobject>
759
 
          <imageobject>
760
 
              <imagedata fileref="figures/zenity-notification-screenshot.png" format="PNG"/>
761
 
          </imageobject>
762
 
          <textobject>
763
 
              <phrase><application>Zenity</application> notification icon example</phrase>
764
 
          </textobject>
765
 
        </mediaobject>
766
 
      </screenshot>
767
 
   </figure>
768
 
                                                                                                          
769
 
  </sect1>
770
 
 
771
 
<!-- ==== List Options ====== -->
772
 
 
773
 
  <sect1 id="zenity-list-options">
774
 
    <title>List Dialog</title>
775
 
 
776
 
    <para>
777
 
        Use the <option>--list</option> option to create a list dialog. <application>Zenity</application> returns the entries in the first column of text of selected rows to standard output.
778
 
    </para>
779
 
 
780
 
    <para>
781
 
        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.
782
 
    </para>
783
 
 
784
 
    <para>
785
 
        If you use the <option>--checklist</option> or <option>--radiolist</option> options, each row must start with either 'TRUE' or 'FALSE'.
786
 
    </para>
787
 
 
788
 
    <para>
789
 
        The list dialog supports the following options:
790
 
    </para>
791
 
 
792
 
    <variablelist>
793
 
 
794
 
      <varlistentry>
795
 
        <term><option>--column</option>=<replaceable>column</replaceable></term>
796
 
        <listitem>
797
 
          <para>Specifies the column headers that are displayed in the list dialog. You must specify a <option>--column</option> option for each column that you want to display in the dialog.
798
 
          </para>
799
 
        </listitem>
800
 
      </varlistentry>
801
 
 
802
 
      <varlistentry>
803
 
        <term><option>--checklist</option></term>
804
 
        <listitem>
805
 
          <para>Specifies that the first column in the list dialog contains check boxes.
806
 
          </para>
807
 
        </listitem>
808
 
      </varlistentry>
809
 
 
810
 
      <varlistentry>
811
 
        <term><option>--radiolist</option></term>
812
 
        <listitem>
813
 
          <para>Specifies that the first column in the list dialog contains radio boxes.
814
 
          </para>
815
 
        </listitem>
816
 
      </varlistentry>
817
 
 
818
 
      <varlistentry>
819
 
        <term><option>--editable</option></term>
820
 
        <listitem>
821
 
          <para>Allows the displayed items to be edited.
822
 
          </para>
823
 
        </listitem>
824
 
      </varlistentry>
825
 
 
826
 
      <varlistentry>
827
 
        <term><option>--separator</option>=<replaceable>separator</replaceable></term>
828
 
        <listitem>
829
 
          <para>Specifies what string is used when the list dialog returns the selected entries.
830
 
          </para>
831
 
        </listitem>
832
 
      </varlistentry>
833
 
 
834
 
      <varlistentry>
835
 
        <term><option>--print-column</option>=<replaceable>column</replaceable></term>
836
 
        <listitem>
837
 
          <para>Specifies what column should be printed out upon selection. The default column is
838
 
                '1'. 'ALL' can be used to print out all columns in the list.
839
 
          </para>
840
 
        </listitem>
841
 
      </varlistentry>
842
 
 
843
 
    </variablelist>
844
 
 
845
 
    <para>
846
 
      The following example script shows how to create a list dialog:
847
 
      <programlisting>
848
 
        #!/bin/sh
849
 
 
850
 
        zenity --list \
851
 
          --title="Choose the Bugs You Wish to View" \
852
 
          --column="Bug Number" --column="Severity" --column="Description" \
853
 
            992383 Normal "GtkTreeView crashes on multiple selections" \
854
 
            293823 High "GNOME Dictionary does not handle proxy" \
855
 
            393823 Critical "Menu editing does not work in GNOME 2.0"
856
 
      </programlisting>
857
 
 
858
 
    </para>
859
 
 
860
 
    <figure id="zenity-list-screenshot">
861
 
      <title>List Dialog Example</title>
862
 
      <screenshot>
863
 
        <mediaobject>
864
 
          <imageobject>
865
 
            <imagedata fileref="figures/zenity-list-screenshot.png" format="PNG"/>
866
 
          </imageobject>
867
 
          <textobject>
868
 
            <phrase><application>Zenity</application> list dialog example</phrase>
869
 
          </textobject>
870
 
        </mediaobject>
871
 
      </screenshot>
872
 
    </figure>
873
 
 
874
 
  </sect1>
875
 
 
876
 
<!-- ==== Message Options ====== -->
877
 
 
878
 
  <sect1 id="zenity-message-options">
879
 
    <title>Message Dialogs</title>
880
 
 
881
 
    <para>
882
 
        <application>Zenity</application> can create four types of message dialog: 
883
 
    </para>
884
 
    <itemizedlist>
885
 
      <listitem>
886
 
        <para>Napaka</para>
887
 
      </listitem>
888
 
      <listitem>
889
 
        <para>Podrobnosti</para>
890
 
      </listitem>
891
 
      <listitem>
892
 
        <para>Vprašanje</para>
893
 
      </listitem>
894
 
      <listitem>
895
 
        <para>Opozorilo</para>
896
 
      </listitem>
897
 
    </itemizedlist>
898
 
 
899
 
    <para>
900
 
For each type, use the <option>--text</option> option to specify the text that is displayed in the dialog.
901
 
    </para>
902
 
 
903
 
    <sect2 id="zenity-error-dialog">
904
 
      <title>Error Dialog</title>
905
 
 
906
 
      <para>
907
 
          Use the <option>--error</option> option to create an error dialog.  
908
 
      </para>
909
 
 
910
 
      <para>
911
 
        The following example script shows how to create an error dialog:
912
 
 
913
 
        <programlisting>
914
 
          #!/bin/bash
915
 
 
916
 
          zenity --error \
917
 
          --text="Could not find /var/log/syslog."
918
 
        </programlisting>
919
 
 
920
 
      </para>
921
 
 
922
 
      <figure id="zenity-error-screenshot">
923
 
        <title>Error Dialog Example</title>
924
 
        <screenshot>
925
 
          <mediaobject>
926
 
            <imageobject>
927
 
              <imagedata fileref="figures/zenity-error-screenshot.png" format="PNG"/>
928
 
            </imageobject>
929
 
            <textobject>
930
 
              <phrase><application>Zenity</application> error dialog example</phrase>
931
 
            </textobject>
932
 
          </mediaobject>
933
 
        </screenshot>
934
 
      </figure>
935
 
    </sect2>
936
 
 
937
 
    <sect2 id="zenity-info-dialog">
938
 
      <title>Information Dialog</title>
939
 
 
940
 
      <para>
941
 
          Use the <option>--info</option> option to create an information dialog.
942
 
      </para>
943
 
 
944
 
      <para>
945
 
        The following example script shows how to create an information dialog:
946
 
 
947
 
        <programlisting>
948
 
          #!/bin/bash
949
 
 
950
 
          zenity --info \
951
 
          --text="Merge complete. Updated 3 of 10 files."
952
 
        </programlisting>
953
 
 
954
 
      </para>
955
 
 
956
 
      <figure id="zenity-information-screenshot">
957
 
        <title>Information Dialog Example</title>
958
 
        <screenshot>
959
 
          <mediaobject>
960
 
            <imageobject>
961
 
              <imagedata fileref="figures/zenity-information-screenshot.png" format="PNG"/>
962
 
            </imageobject>
963
 
            <textobject>
964
 
              <phrase><application>Zenity</application> information dialog example</phrase>
965
 
            </textobject>
966
 
          </mediaobject>
967
 
        </screenshot>
968
 
      </figure>
969
 
    </sect2>
970
 
 
971
 
    <sect2 id="zenity-question-dialog">
972
 
      <title>Question Dialog</title>
973
 
 
974
 
      <para>
975
 
          Use the <option>--question</option> option to create a question dialog.
976
 
      </para>
977
 
 
978
 
      <para>
979
 
        The following example script shows how to create a question dialog:
980
 
 
981
 
        <programlisting>
982
 
          #!/bin/bash
983
 
 
984
 
          zenity --question \
985
 
          --text="Are you sure you wish to proceed?"
986
 
        </programlisting>
987
 
 
988
 
      </para>
989
 
 
990
 
      <figure id="zenity-question-screenshot">
991
 
        <title>Question Dialog Example</title>
992
 
        <screenshot>
993
 
          <mediaobject>
994
 
            <imageobject>
995
 
              <imagedata fileref="figures/zenity-question-screenshot.png" format="PNG"/>
996
 
            </imageobject>
997
 
            <textobject>
998
 
              <phrase><application>Zenity</application> question dialog example</phrase>
999
 
            </textobject>
1000
 
          </mediaobject>
1001
 
        </screenshot>
1002
 
      </figure>
1003
 
    </sect2>
1004
 
 
1005
 
    <sect2 id="zenity-warning-dialog">
1006
 
      <title>Warning Dialog</title>
1007
 
 
1008
 
      <para>
1009
 
          Use the <option>--warning</option> option to create a warning dialog.
1010
 
      </para>
1011
 
 
1012
 
      <para>
1013
 
        The following example script shows how to create a warning dialog:
1014
 
 
1015
 
        <programlisting>
1016
 
          #!/bin/bash
1017
 
        
1018
 
          zenity --warning \
1019
 
          --text="Disconnect the power cable to avoid electrical shock."
1020
 
        </programlisting>
1021
 
 
1022
 
      </para>
1023
 
 
1024
 
      <figure id="zenity-warning-screenshot">
1025
 
        <title>Warning Dialog Example</title>
1026
 
        <screenshot>
1027
 
          <mediaobject>
1028
 
            <imageobject>
1029
 
              <imagedata fileref="figures/zenity-warning-screenshot.png" format="PNG"/>
1030
 
            </imageobject>
1031
 
            <textobject>
1032
 
              <phrase><application>Zenity</application> warning dialog example</phrase>
1033
 
            </textobject>
1034
 
          </mediaobject>
1035
 
        </screenshot>
1036
 
      </figure>
1037
 
    </sect2>
1038
 
 
1039
 
  </sect1>
1040
 
 
1041
 
<!-- ==== Progress Options ====== -->
1042
 
 
1043
 
  <sect1 id="zenity-progress-options">
1044
 
    <title>Progress Dialog</title>
1045
 
 
1046
 
    <para>
1047
 
        Use the <option>--progress</option> option to create a progress dialog. 
1048
 
    </para>
1049
 
 
1050
 
    <para>
1051
 
      <application>Zenity</application> 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.
1052
 
    </para>
1053
 
        
1054
 
    <para>
1055
 
        The progress dialog supports the following options:
1056
 
    </para>
1057
 
 
1058
 
    <variablelist>
1059
 
 
1060
 
      <varlistentry>
1061
 
        <term><option>--text</option>=<replaceable>text</replaceable></term>
1062
 
        <listitem>
1063
 
          <para>Specifies the text that is displayed in the progress dialog.</para>
1064
 
        </listitem>
1065
 
      </varlistentry>
1066
 
 
1067
 
      <varlistentry>
1068
 
        <term><option>--percentage</option>=<replaceable>percentage</replaceable></term>
1069
 
        <listitem>
1070
 
          <para>Specifies the initial percentage that is set in the progress dialog.</para>
1071
 
        </listitem>
1072
 
      </varlistentry>
1073
 
 
1074
 
      <varlistentry>
1075
 
        <term><option>--auto-close</option></term>
1076
 
        <listitem>
1077
 
          <para>Closes the progress dialog when 100% has been reached.</para>
1078
 
        </listitem>
1079
 
      </varlistentry>
1080
 
 
1081
 
      <varlistentry>
1082
 
        <term><option>--pulsate</option></term>
1083
 
        <listitem>
1084
 
          <para>Specifies that the progress bar pulsates until an EOF character is read from standard input.</para>
1085
 
        </listitem>
1086
 
      </varlistentry>
1087
 
 
1088
 
    </variablelist>
1089
 
 
1090
 
    <para>
1091
 
      The following example script shows how to create a progress dialog:
1092
 
      <programlisting>
1093
 
        #!/bin/sh
1094
 
        (
1095
 
        echo "10" ; sleep 1
1096
 
        echo "# Updating mail logs" ; sleep 1
1097
 
        echo "20" ; sleep 1
1098
 
        echo "# Resetting cron jobs" ; sleep 1
1099
 
        echo "50" ; sleep 1
1100
 
        echo "This line will just be ignored" ; sleep 1
1101
 
        echo "75" ; sleep 1
1102
 
        echo "# Rebooting system" ; sleep 1
1103
 
        echo "100" ; sleep 1
1104
 
        ) |
1105
 
        zenity --progress \
1106
 
          --title="Update System Logs" \
1107
 
          --text="Scanning mail logs..." \
1108
 
          --percentage=0
1109
 
 
1110
 
        if [ "$?" = -1 ] ; then
1111
 
                zenity --error \
1112
 
                  --text="Update canceled."
1113
 
        fi
1114
 
 
1115
 
      </programlisting>
1116
 
 
1117
 
    </para>
1118
 
 
1119
 
    <figure id="zenity-progress-screenshot">
1120
 
      <title>Progress Dialog Example</title>
1121
 
      <screenshot>
1122
 
        <mediaobject>
1123
 
          <imageobject>
1124
 
            <imagedata fileref="figures/zenity-progress-screenshot.png" format="PNG"/>
1125
 
          </imageobject>
1126
 
          <textobject>
1127
 
            <phrase><application>Zenity</application> progress dialog example</phrase>
1128
 
          </textobject>
1129
 
        </mediaobject>
1130
 
      </screenshot>
1131
 
    </figure>
1132
 
 
1133
 
  </sect1>
1134
 
 
1135
 
<!-- ==== Text Entry Options ====== -->
1136
 
 
1137
 
  <sect1 id="zenity-text-entry-options">
1138
 
    <title>Text Entry Dialog</title>
1139
 
 
1140
 
    <para>
1141
 
        Use the <option>--entry</option> option to create a text entry dialog. <application>Zenity</application> returns the contents of the text entry to standard output. 
1142
 
    </para>     
1143
 
    <para>      
1144
 
        The text entry dialog supports the following options:
1145
 
    </para>
1146
 
 
1147
 
    <variablelist>
1148
 
 
1149
 
      <varlistentry>
1150
 
        <term><option>--text</option>=<replaceable>text</replaceable></term>
1151
 
        <listitem>
1152
 
          <para>Specifies the text that is displayed in the text entry dialog.</para>
1153
 
        </listitem>
1154
 
      </varlistentry>
1155
 
 
1156
 
      <varlistentry>
1157
 
        <term><option>--entry-text</option>=<replaceable>text</replaceable></term>
1158
 
        <listitem>
1159
 
          <para>Specifies the text that is displayed in the entry field of the text entry dialog.</para>
1160
 
        </listitem>
1161
 
      </varlistentry>
1162
 
 
1163
 
      <varlistentry>
1164
 
        <term><option>--hide-text</option></term>
1165
 
        <listitem>
1166
 
          <para>Hides the text in the entry field of the text entry dialog.</para>
1167
 
        </listitem>
1168
 
      </varlistentry>
1169
 
 
1170
 
    </variablelist>
1171
 
 
1172
 
    <para>
1173
 
      The following example script shows how to create a text entry dialog:
1174
 
 
1175
 
      <programlisting>
1176
 
        #!/bin/sh
1177
 
 
1178
 
        if zenity --entry \
1179
 
        --title="Add an Entry" \
1180
 
        --text="Enter your _password:" \
1181
 
        --entry-text "password" \
1182
 
        --hide-text
1183
 
          then echo $?
1184
 
          else echo "No password entered"
1185
 
        fi
1186
 
      </programlisting>
1187
 
 
1188
 
    </para>
1189
 
 
1190
 
    <figure id="zenity-entry-screenshot">
1191
 
      <title>Text Entry Dialog Example</title>
1192
 
      <screenshot>
1193
 
        <mediaobject>
1194
 
          <imageobject>
1195
 
            <imagedata fileref="figures/zenity-entry-screenshot.png" format="PNG"/>
1196
 
          </imageobject>
1197
 
          <textobject>
1198
 
            <phrase><application>Zenity</application> text entry dialog example</phrase>
1199
 
          </textobject>
1200
 
        </mediaobject>
1201
 
      </screenshot>
1202
 
    </figure>
1203
 
  </sect1>
1204
 
 
1205
 
<!-- ==== Text Information Options ====== -->
1206
 
 
1207
 
  <sect1 id="zenity-text-options">
1208
 
    <title>Text Information Dialog</title>
1209
 
 
1210
 
    <para>
1211
 
        Use the <option>--text-info</option> option to create a text information dialog. 
1212
 
    </para>
1213
 
        
1214
 
    <para>
1215
 
        The text information dialog supports the following options:
1216
 
    </para>
1217
 
 
1218
 
    <variablelist>
1219
 
 
1220
 
      <varlistentry>
1221
 
        <term><option>--filename</option>=<replaceable>filename</replaceable></term>
1222
 
        <listitem>
1223
 
          <para>Specifies a file that is loaded in the text information dialog.</para>
1224
 
        </listitem>
1225
 
      </varlistentry>
1226
 
 
1227
 
      <varlistentry>
1228
 
        <term><option>--editable</option></term>
1229
 
        <listitem>
1230
 
          <para>Allows the displayed text to be edited. The edited text is returned to standard output when the dialog is closed.</para>
1231
 
        </listitem>
1232
 
      </varlistentry>
1233
 
 
1234
 
    </variablelist>
1235
 
 
1236
 
    <para>
1237
 
      The following example script shows how to create a text information dialog:
1238
 
      <programlisting>
1239
 
        #!/bin/sh
1240
 
 
1241
 
        FILE=`zenity --file-selection \
1242
 
          --title="Select a File"`
1243
 
 
1244
 
        case $? in
1245
 
                 0)
1246
 
                        zenity --text-info \
1247
 
                          --title=$FILE \
1248
 
                          --filename=$FILE \
1249
 
                          --editable 2&gt;/tmp/tmp.txt;;
1250
 
                 1)
1251
 
                        echo "No file selected.";;
1252
 
                -1)
1253
 
                        echo "No file selected.";;
1254
 
        esac
1255
 
      </programlisting>
1256
 
 
1257
 
    </para>
1258
 
 
1259
 
    <figure id="zenity-text-screenshot">
1260
 
      <title>Text Information Dialog Example</title>
1261
 
      <screenshot>
1262
 
        <mediaobject>
1263
 
          <imageobject>
1264
 
            <imagedata fileref="figures/zenity-text-screenshot.png" format="PNG"/>
1265
 
          </imageobject>
1266
 
          <textobject>
1267
 
            <phrase><application>Zenity</application> text information dialog example</phrase>
1268
 
          </textobject>
1269
 
        </mediaobject>
1270
 
      </screenshot>
1271
 
    </figure>
1272
 
 
1273
 
  </sect1>
1274
 
 
1275
 
</article>