Change manual page markup, making it more parsable
[pipeglade.git] / pipeglade.1
blobc0733e788c508529dea5fdb5d26d42187d8d56d5
1 .\" Copyright (c) 2014-2016 Bert Burgemeister <trebbu@googlemail.com>
2 .\"
3 .\" Permission is hereby granted, free of charge, to any person obtaining
4 .\" a copy of this software and associated documentation files (the
5 .\" "Software"), to deal in the Software without restriction, including
6 .\" without limitation the rights to use, copy, modify, merge, publish,
7 .\" distribute, sublicense, and/or sell copies of the Software, and to
8 .\" permit persons to whom the Software is furnished to do so, subject to
9 .\" the following conditions:
10 .\"
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
13 .\"
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 .\" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 .\" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 .\" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 .\" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 .\"
22 .Dd July 3, 2016
23 .Dt PIPEGLADE 1 PRM
24 .Os BSD
25 .Sh NAME
26 .Nm pipeglade
27 .Nd pipe-driven GTK+ interface
28 .Sh SYNOPSIS
29 .Nm
30 .Oo
31 .Op Fl i Ar in-fifo
32 .Op Fl o Ar out-fifo
33 .Op Fl b
34 .Op Fl u Ar builder-file
35 .Op Fl e Ar parent-xid
36 .Op Fl l Ar log-file
37 .Op Fl O Ar err-file
38 .Op Fl -display Ar X-server
39 .Oc |
40 .Op Fl h | G | V
41 .Sh DESCRIPTION
42 .Nm
43 is a helper program that displays graphical user
44 interfaces for other programs.
45 It renders the GUI definition found in a GtkBuilder XML file
46 (typically created using the
47 .Xr glade 1
48 interface designer), and communicates with the main program solely
49 through plain text messages via pipes or fifos.
50 It provides access to a subset of features of a subset of widgets of
51 GTK+ 3.
52 Simple one-shot dialogs as well as more complex, long-running programs
53 can be built using
54 .Nm ;
55 see
56 .Sx EXAMPLES .
57 .Sh OPTIONS
58 .Bl -tag -width Ds
59 .It Fl i Ar in-fifo
60 Creates a named pipe
61 .Ar in-fifo
62 if necessary, sets its permissions to
63 .Li 0600 ,
64 and uses it for command input.
65 .Pp
66 A command is a line of text.
67 Its format is
68 .Qq Ar id Ns Cm \&: Ns Ar action Bq Ar data ,
69 .Ar id
70 being the name of the receiving widget;
71 .Ar data
72 is separated from the rest of the command by a single whitespace
73 character.
74 Commands whose first non-whitespace character is
75 .Cm #
76 are considered comments and ignored silently, as are empty input lines.
77 Any occurences of the two-character sequences
78 .Cm \en
79 and
80 .Cm \er
81 will be converted into newline or carriage return, respectively.
82 Every other character following a backslash will be left unchanged,
83 but the backslash will be removed.
84 Invalid commands are reported on
85 .Va stderr
86 and are otherwise ignored.
87 See
88 .Sx WIDGETS
89 for applicable commands.
90 .Pp
91 It is an error if
92 .Ar in-fifo
93 exists but is not a named pipe.
94 The named pipe
95 .Ar in-fifo
96 is deleted upon successful program termination.
97 .Pp
98 Default command input is
99 .Va stdin .
100 .It Fl o Ar out-fifo
101 Creates a named pipe
102 .Ar out-fifo
103 if necessary, sets its permissions to
104 .Li 0600 ,
105 and uses it for output of feedback messages from the
106 graphical user interface.
108 A feedback message is a line of text; its format is
109 .Qq Ar id Ns Cm \&: Ns Ar info Bq Ar data ,
110 .Ar id
111 being the name of the sending widget.
113 .Sx WIDGETS
114 for possible feedback messages.
116 It is an error if
117 .Ar out-fifo
118 exists but is not a named pipe.
119 The named pipe
120 .Ar out-fifo
121 is deleted upon successful program termination.
123 Default feedback-message output is
124 .Va stdout .
125 .It Fl b
126 Runs
128 in the background after printing its process ID to
129 .Va stdout .
131 It is an error if option
132 .Fl b
133 is used and not both
134 .Fl i Ar in-fifo
136 .Fl o Ar out-fifo
137 are specified.
138 .It Fl u Ar builder-file
139 Displays the graphical user interface
140 .Ar builder-file
141 which should be created using the
142 .Xr glade 1
143 user interface designer and saved in GtkBuilder (.ui) format.
144 Widget ids should consist of alphanumeric ASCII characters including
145 hyphens and underscores.
146 The main window must must be given the id
147 .Cm main .
149 Default is
150 .Pa ./pipeglade.ui .
151 .It Fl e Ar parent-xid
152 Embeds the main window into the XEmbed socket
153 .Ar parent-xid
154 of another process.
155 .It Fl l Ar log-file
156 Appends for each command a line of
157 .Qq Ar time activity
159 .Ar log-file ,
160 .Ar time
161 being the number of microseconds elapsed during
162 .Ar activity .
163 .Ar time
165 .Ar activity
166 are separated by a tab character.
167 Permissions of
168 .Ar log-file
169 are set to
170 .Li 0600 .
172 .Ar log-file
173 name of
174 .Ql -
175 means
176 .Va stderr .
177 .It Fl O Ar err-file
178 Redirects
179 .Va stderr ,
180 appending its output to
181 .Ar err-file .
182 Permissions of
183 .Ar err-file
184 are set to
185 .Li 0600 .
186 .It Fl -display Ar X-server
187 Uses the display on
188 .Ar X-server
189 for user interaction.
190 .It Fl h
191 Prints a help message and exits.
192 .It Fl G
193 Prints the versions of the underlying GTK+ and cairo libraries and
194 exits.
195 .It Fl V
196 Prints the
198 version and exits.
200 .Sh WIDGETS
201 The widget classes able to communicate through
204 .\" BEGIN_TOC
205 .Sx GtkAspectFrame ,
206 .Sx GtkBox ,
207 .Sx GtkButton ,
208 .Sx GtkButtonBox ,
209 .Sx GtkCalendar ,
210 .Sx GtkCheckButton ,
211 .Sx GtkColorButton ,
212 .Sx GtkComboBoxText ,
213 .Sx GtkDialog ,
214 .Sx GtkDrawingArea ,
215 .Sx GtkEntry ,
216 .Sx GtkEventBox ,
217 .Sx GtkExpander ,
218 .Sx GtkFileChooserButton ,
219 .Sx GtkFileChooserDialog ,
220 .Sx GtkFontButton ,
221 .Sx GtkFrame ,
222 .Sx GtkGrid ,
223 .Sx GtkImage ,
224 .Sx GtkImageMenuItem ,
225 .Sx GtkInfoBar ,
226 .Sx GtkLabel ,
227 .Sx GtkLinkButton ,
228 .Sx GtkMenu ,
229 .Sx GtkMenuBar ,
230 .Sx GtkMenuButton ,
231 .Sx GtkMenuItem ,
232 .Sx GtkNotebook ,
233 .Sx GtkOverlay ,
234 .Sx GtkPaned ,
235 .Sx GtkPlug ,
236 .Sx GtkPrintUnixDialog ,
237 .Sx GtkProgressBar ,
238 .Sx GtkRadioButton ,
239 .Sx GtkScale ,
240 .Sx GtkScrolledWindow ,
241 .Sx GtkSeparator ,
242 .Sx GtkSeparatorMenuItem ,
243 .Sx GtkSizeGroup ,
244 .Sx GtkSocket ,
245 .Sx GtkSpinButton ,
246 .Sx GtkSpinner ,
247 .Sx GtkStatusbar ,
248 .Sx GtkSwitch ,
249 .Sx GtkTextView ,
250 .Sx GtkToggleButton ,
251 .Sx GtkTreeView ,
252 .Sx GtkTreeViewColumn ,
253 .Sx GtkViewport ,
255 .Sx GtkWindow .
256 .\" END_TOC
259 references a widget by the
260 .Ar id
261 attribute it is given in Glade.
262 In the
263 .Pa .ui
264 file, a
265 .Cm GtkWindow
266 named
267 .Li foo
268 would appear as
269 .Dl <object class="GtkWindow" id="foo"> .
271 .\" Commands most widgets understand:
273 .\"  set_visible
274 .\"  set_sensitive
275 .\"  grab_focus
276 .\"  set_tooltip_text
277 .\"  block
278 .\"  set_size_request
279 .\"  style
280 .\"  force
281 .\"  snapshot
283 .Ss Unspecific Widget
284 .Bl -tag -width indent
285 .It Commands
286 .Bl -item
288 .Qq Ar id Ns Cm :load Ar file
289 reads arbitrary
291 commands from
292 .Ar file .
293 A non-empty
294 .Ar id
295 is required but ignored.
296 .Cm :load
297 commands may be nested but on attempts to read from the same file, the
298 inner
299 .Cm :load
300 is ignored.
301 There is also a
302 .Cm :save
303 command; see
304 .Sx GtkTextView
306 .Sx GtkTreeView .
308 .Qq Ar id Ns Cm :main_quit
309 kills the user interface.
310 A non-empty
311 .Ar id
312 is required but ignored.
315 .Ss GtkAspectFrame
316 .Bl -tag -width indent
317 .It Commands
318 .Bl -item
320 .Qq Ar id Ns Cm :set_label Ar text
321 replaces the frame label text with
322 .Ar string .
324 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
325 makes the frame and its content grayed out
326 .Pq Cm 0
327 or responsive
328 .Pq Cm 1 .
330 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
331 hides
332 .Pq Cm 0
333 the frame, or makes it visible
334 .Pq Cm 1 .
336 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
337 sets the frame's tooltip.
338 Default is disabling the tooltip.
340 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
341 writes a snapshot of the frame to an image file of the specified
342 type.
344 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
345 sets the widget's minimum size to
346 .Ar width
348 .Ar height .
349 Default is the frame's natural size.
352 .Ar id Ns Cm :style
353 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
355 sets the style.
357 .Sx Style .
359 .It Feedback
360 .Bl -item
362 none
365 .Ss GtkBox
366 .Bl -tag -width indent
367 .It Commands
368 .Bl -item
370 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
371 makes the box grayed out
372 .Pq Cm 0
373 or responsive
374 .Pq Cm 1 .
376 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
377 hides
378 .Pq Cm 0
379 the box, or makes it visible
380 .Pq Cm 1 .
381 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
382 sets the box's tooltip.
383 Default is disabling the tooltip.
385 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
386 writes a snapshot of the box to an image file of the specified
387 type.
389 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
390 sets the box's minimum size to
391 .Ar width
393 .Ar height .
394 Default is the box's natural size.
397 .Ar id Ns Cm :style
398 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
400 sets the style.
402 .Sx Style .
404 .It Feedback
405 .Bl -item
407 none
410 .Ss GtkButton
411 .Bl -tag -width indent
412 .It Commands
413 .Bl -item
415 .Qq Ar id Ns Cm :set_label Ar string
416 replaces the button text with
417 .Ar string .
419 .Qq Ar id Ns Cm :grab_focus
420 puts the keyboard focus onto the button.
422 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
423 makes the button grayed out
424 .Pq Cm 0
425 or responsive
426 .Pq Cm 1 .
428 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
429 hides
430 .Pq Cm 0
431 the button, or makes it visible
432 .Pq Cm 1 .
434 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
435 blocks
436 .Pq Cm 1
437 or unblocks
438 .Pq Cm 0
439 feedback messages.
440 Initially, the button is unblocked.
442 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
443 sets the button's tooltip.
444 Default is disabling the tooltip.
446 .Qq Ar id Ns Cm :force
447 simulates a click on the button.
449 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
450 writes a snapshot of the button to an image file of the specified
451 type.
453 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
454 sets the button's minimum size to
455 .Ar width
457 .Ar height .
458 Default is the button's natural size.
461 .Ar id Ns Cm :style
462 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
464 sets the style.
466 .Sx Style .
468 .It Feedback
469 .Bl -item
471 .Qq Ar id Ns Cm \&:clicked
473 .Cm GtkButton Ns
474 s with ids ending in
475 .Cm _ok , _apply , _cancel , _send_text ,
477 .Cm _send_selection
478 may work differently; see
479 .Sx GtkDialog , GtkFileChooserDialog ,
481 .Sx GtkTextView
482 for details.
485 .Ss GtkButtonBox
486 .Bl -tag -width indent
487 .It Commands
488 .Bl -item
490 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
491 makes the box grayed out
492 .Pq Cm 0
493 or responsive
494 .Pq Cm 1 .
496 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
497 hides
498 .Pq Cm 0
499 the box, or makes it visible
500 .Pq Cm 1 .
502 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
503 sets the box's tooltip.
504 Default is disabling the tooltip.
506 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
507 writes a snapshot of the box to an image file of the specified
508 type.
510 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
511 sets the box's minimum size to
512 .Ar width
514 .Ar height .
515 Default is the box's natural size.
518 .Ar id Ns Cm :style
519 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
521 sets the style.
523 .Sx Style .
525 .It Feedback
526 .Bl -item
528 none
531 .Ss GtkCalendar
532 .Bl -tag -width indent
533 .It Commands
534 .Bl -item
536 .Qq Ar id Ns Cm :select_date Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
537 selects the date on the calendar.
539 .Qq Ar id Ns Cm :mark_day Ar day
540 marks
541 .Ar day Pq 1-31
542 on the calendar.
544 .Qq Ar id Ns Cm :clear_marks
545 unmarks all days on the calendar.
547 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
548 makes the calendar grayed out
549 .Pq Cm 0
550 or responsive
551 .Pq Cm 1 .
553 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
554 hides
555 .Pq Cm 0
556 the calendar, or makes it visible
557 .Pq Cm 1 .
559 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
560 blocks
561 .Pq Cm 1
562 or unblocks
563 .Pq Cm 0
564 feedback messages.
565 Initially, the calendar is unblocked.
567 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
568 sets the calendar's tooltip.
569 Default is disabling the tooltip.
571 .Qq Ar id Ns Cm :force
572 simulates a click on the currently selected date.
574 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
575 writes a snapshot of the calendar to an image file of the specified
576 type.
578 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
579 sets the calendar's minimum size to
580 .Ar width
582 .Ar height .
583 Default is the widget's natural size.
586 .Ar id Ns Cm :style
587 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
589 sets the calendar's style.
591 .Sx Style .
593 .It Feedback
594 .Bl -item
596 .Qq Ar id Ns Cm \&:clicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
598 .Qq Ar id Ns Cm \&:doubleclicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
601 .Ss GtkCheckButton
602 .Bl -tag -width indent
603 .It Commands
604 .Bl -item
606 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
607 switches the check mark off
608 .Pq Cm 0
609 or on
610 .Pq Cm 1 .
612 .Qq Ar id Ns Cm :set_label Ar string
613 replaces the button text with
614 .Ar string .
616 .Qq Ar id Ns Cm :grab_focus
617 puts the keyboard focus onto the button.
619 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
620 makes the button grayed out
621 .Pq Cm 0
622 or responsive
623 .Pq Cm 1 .
625 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
626 hides
627 .Pq Cm 0
628 the button, or makes it visible
629 .Pq Cm 1 .
631 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
632 blocks
633 .Pq Cm 1
634 or unblocks
635 .Pq Cm 0
636 feedback messages.
637 Initially, the button is unblocked.
639 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
640 sets the button's tooltip.
641 Default is disabling the tooltip.
643 .Qq Ar id Ns Cm :force
644 simulates a click on the button.
646 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
647 writes a snapshot of the button to an image file of the specified
648 type.
650 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
651 sets the button's minimum size to
652 .Ar width
654 .Ar height .
655 Default is the widget's natural size.
658 .Ar id Ns Cm :style
659 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
661 sets the button's style.
663 .Sx Style .
665 .It Feedback
666 .Bl -item
668 .Qq Ar id Ns Cm \&:1
669 if switched on, or
670 .Qq Ar id Ns Cm \&:0
671 otherwise.
674 .Ss GtkColorButton
675 .Bl -tag -width indent
676 .It Commands
677 .Bl -item
679 .Qq Ar id Ns Cm :set_color Ar color
680 preselects the color; see
681 .Sx Color .
683 .Qq Ar id Ns Cm :grab_focus
684 puts the keyboard focus onto the button.
686 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
687 makes the button grayed out
688 .Pq Cm 0
689 or responsive
690 .Pq Cm 1 .
692 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
693 hides
694 .Pq Cm 0
695 the button, or makes it visible
696 .Pq Cm 1 .
698 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
699 blocks
700 .Pq Cm 1
701 or unblocks
702 .Pq Cm 0
703 feedback messages.
704 Initially, the button is unblocked.
706 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
707 sets the button's tooltip.
708 Default is disabling the tooltip.
710 .Qq Ar id Ns Cm :force
711 opens the dialog window.
713 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
714 writes a snapshot of the button to an image file of the specified
715 type.
717 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
718 sets the button's minimum size to
719 .Ar width
721 .Ar height .
722 Default is the widget's natural size.
725 .Ar id Ns Cm :style
726 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
728 sets the button's style.
730 .Sx Style .
732 .It Feedback
733 .Bl -item
735 .Qq Ar id Ns Cm \&:color Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
737 .Qq Ar id Ns Cm \&:color Cm rgba( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&, Ns Ar alpha Ns Cm \&) .
738 .Ar red , green ,
740 .Ar blue
741 lie between 0 and 255, and
742 .Ar alpha
743 between 0 and 1.
746 .Ss GtkComboBoxText
748 .Cm GtkComboBoxText
749 should contain a
750 .Cm GtkEntry .
751 .Bl -tag -width indent
752 .It Commands
753 .Bl -item
755 .Qq Ar id Ns Cm :prepend_text Ar string
757 .Qq Ar id Ns Cm :append_text Ar string
758 prepend/append a new selectable item marked
759 .Ar string .
761 .Qq Ar id Ns Cm :insert_text Ar position string
762 inserts item
763 .Ar string
765 .Ar position .
767 .Qq Ar id Ns Cm :remove Ar position
768 removes the item at
769 .Ar position .
771 .Qq Ar id Ns Cm :grab_focus
772 puts the keyboard focus onto the combo box.
774 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
775 makes the combo box grayed out
776 .Pq Cm 0
777 or responsive
778 .Pq Cm 1 .
780 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
781 hides
782 .Pq Cm 0
783 the combo box, or makes it visible
784 .Pq Cm 1 .
786 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
787 blocks
788 .Pq Cm 1
789 or unblocks
790 .Pq Cm 0
791 feedback messages.
792 Initially, the combo box is unblocked.
794 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
795 sets the tooltip.
796 Default is disabling the tooltip.
798 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
799 writes a snapshot of the combo box to an image file of the specified
800 type.
802 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
803 sets the combo box's minimum size to
804 .Ar width
806 .Ar height .
807 Default is the natural size.
810 .Ar id Ns Cm :style
811 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
813 sets the style.
815 .Sx Style .
817 .It Feedback
818 .Bl -item
820 .Qq Ar entry_id Ns Cm \&:text Ar text ,
821 .Ar entry_id
822 being the id of the child
823 .Cm GtkEntry .
826 .Ss GtkDialog
828 .Cm GtkDialog
829 with id
830 .Ar foo
831 will be invoked by a
832 .Sx GtkMenuItem
833 or a
834 .Sx GtkImageMenuItem
835 with id
836 .Ar foo Ns Cm _invoke .
839 .Cm GtkDialog
840 should have a
841 .Sq Cancel
842 .Sx GtkButton
843 with id
844 .Ar foo Ns Cm _cancel
845 .Po Cm main_cancel
846 if the dialog is the sole window of the GUI and therefore named
847 .Cm main
848 .Pc .
850 If the
851 .Cm GtkDialog
852 has an
853 .Sq Ok
854 .Sx GtkButton
855 with id
856 .Ar foo Ns Cm _ok ,
857 it will take care of hiding the dialog window.
858 .Bl -tag -width indent
859 .It Commands
860 .Bl -item
862 .Qq Ar id Ns Cm :set_title Ar string
863 replaces the text in the title bar with
864 .Ar string .
866 .Qq Ar id Ns Cm :resize Bq Ar width height
867 changes the size of the dialog window to
868 .Ar width
870 .Ar height
871 pixels if specified, or to the default size.
873 .Qq Ar id Ns Cm :move Ar x y
874 moves the dialog window to position
875 .Pq Ar x , y .
877 .Qq Ar id Ns Cm :fullscreen
879 .Qq Ar id Ns Cm :unfullscreen
880 switch fullscreen mode on and off.
882 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
883 makes the dialog grayed out
884 .Pq Cm 0
885 or responsive
886 .Pq Cm 1 .
888 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
889 hides
890 .Pq Cm 0
891 the dialog, or makes it visible
892 .Pq Cm 1 .
894 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
895 blocks
896 .Pq Cm 1
897 or unblocks
898 .Pq Cm 0
899 feedback messages from the dialog window.
900 Initially, the window is unblocked.
902 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
903 sets the dialog window's tooltip.
904 Default is disabling the tooltip.
906 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
907 writes a snapshot of the dialog window to an image file of the
908 specified type.
910 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
911 sets the dialog window's minimum size to
912 .Ar width
914 .Ar height .
915 Default is its natural size.
918 .Ar id Ns Cm :style
919 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
921 sets the dialog window's style.
923 .Sx Style .
925 .It Feedback
926 .Bl -item
928 .Qq Ar id Ns Cm \&:closed
929 if the
930 .Cm GtkDialog
931 window was closed by the window manager.
934 .Ss GtkDrawingArea
935 Drawing commands
936 expect a context parameter of the form
937 .Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
938 where
939 .Ar n
940 is an arbitrary non-negative integer that can be used later to
941 reference the command.
942 The first form,
943 .Ar n ,
944 appends its command to the current list of drawing operations.
945 The second form,
946 .Cm = Ns Ar n ,
947 replaces the first drawing operation with context parameter
948 .Ar n
949 by the new command.
950 The third form,
951 .Ar n Ns Cm < Ns Ar m ,
952 inserts its command before the first drawing operation with context
953 parameter
954 .Ar m .
955 Both second and third form fall back to appending.
957 The default coordinate system is a left-handed system with its origin
958 in the upper-left corner.
959 Angles increase from the positive X axis towards the positve Y axis
960 .Pq clockwise in the default system .
961 .Bl -tag -width indent
962 .It Commands
963 .Bl -item
965 .Qq Ar id Ns Cm :arc Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x y radius angle1 angle2
966 adds a circular arc to the current path.
967 The arc is centered at
968 .Pq Ar x , y
969 and proceeds from
970 .Ar angle1
972 .Ar angle2
973 .Pq in degrees .
975 .Qq Ar id Ns Cm :arc_negative Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x y radius angle1 angle2
976 adds a circular arc to the current path.
977 The arc is centered at
978 .Pq Ar x , y
979 and proceeds in the direction of decreasing angles from
980 .Ar angle1
982 .Ar angle2
983 .Pq in degrees .
985 .Qq Ar id Ns Cm :close_path Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
986 adds a line segment from the current point to the point most recently
987 passed to
988 .Ar id Ns Cm :move_to
990 .Ar id Ns Cm :rel_move_to .
992 .Qq Ar id Ns Cm :curve_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x1 y1 x2 y2 x3 y3
993 adds a cubic Bezier spline from the current point to
994 .Pq Ar x3 , y3 ,
995 using
996 .Pq Ar x1 , y1
998 .Pq Ar x2 , y2
999 as control points.
1000 If there is no current point, the curve will start at
1001 .Pq Ar x1 , y1 .
1003 .Qq Ar id Ns Cm :fill Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1004 fills the current path and clears it.
1006 .Qq Ar id Ns Cm :fill_preserve Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1007 fills the current path without clearing it.
1009 .Qq Ar id Ns Cm :line_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x y
1010 adds a line from the current point to
1011 .Pq Ar x , y ,
1012 or creates a new current point at
1013 .Pq Ar x , y .
1015 .Qq Ar id Ns Cm :move_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x y
1016 sets the current point to
1017 .Pq Ar x , y .
1019 .Qq Ar id Ns Cm :rectangle Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc x y width height
1020 adds a rectangle to the current path.
1021 The top left corner is at
1022 .Pq Ar x , y .
1024 .Qq Ar id Ns Cm :rel_curve_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc dx1 dy1 dx2 dy2 dx3 dy3
1025 adds a cubic Bezier spline from the current point to
1026 .Pq Ar dx3 , dy3 ,
1027 using
1028 .Pq Ar dx1 , dy1
1030 .Pq Ar dx2 , dy2
1031 as control points.
1032 All coordinates are offsets relative to the current point.
1034 .Qq Ar id Ns Cm :rel_line_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc dx dy
1035 adds a line from the current point to a point offset from there by
1036 .Pq Ar dx , dy .
1038 .Qo Ar id Ns Cm :rel_move_for Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1039 .Brq Cm c Ns | Ns Cm e Ns | Ns Cm n Ns | Ns Cm ne Ns | Ns Cm nw Ns | Ns Cm s Ns | Ns Cm se Ns | Ns Cm sw Ns | Ns Cm w
1040 .Ar text
1042 moves the current point such that
1043 .Qq Ar id Ns Cm :show_text Ar n text
1044 will place the specified reference point of
1045 .Ar text
1046 on the original current point.
1048 .Qq Ar id Ns Cm :rel_move_to Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc dx dy
1049 moves the current point by
1050 .Pq Ar dx , dy .
1052 .Qq Ar id Ns Cm :remove Ar n
1053 removes the elements with context parameter
1054 .Ar n
1055 from the
1056 .Cm GtkDrawingArea Ar id .
1058 .Qq Ar id Ns Cm :rotate Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Ar angle
1059 rotates the user space axes by
1060 .Ar angle
1061 .Pq in degrees .
1063 .Qq Ar id Ns Cm :scale Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Ar sx sy
1064 scales the user space axes by
1065 .Pq Ar sx , sy .
1067 .Qq Ar id Ns Cm :set_dash Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc l
1068 sets the dash pattern to
1069 .Ar l
1071 .Ar l
1072 off.
1074 .Qq Ar id Ns Cm :set_dash Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc l1on l1off l2on l2off ...
1075 resets the dash pattern to a line with arbitrary on/off portions.
1077 .Qq Ar id Ns Cm :set_dash Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1078 resets the dash pattern to a solid line.
1080 .Qo Ar id Ns Cm :set_font_face Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1081 .Brq Cm normal | italic | oblique
1082 .Brq Cm normal | bold
1083 .Bq Ar family
1085 sets the font face for subsequent calls of
1086 .Ar id Ns Cm :show_text .
1088 .Qq Ar id Ns Cm :set_font_size Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc size
1089 sets the font size for subsequent calls of
1090 .Ar id Ns Cm :show_text .
1092 .Qq Ar id Ns Cm :set_line_cap Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Brq Cm butt | round | square
1093 sets the line cap style.
1094 Default is
1095 .Cm butt .
1097 .Qq Ar id Ns Cm :set_line_join Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Brq Cm miter | round | bevel
1098 sets the line junction style.
1099 Default is
1100 .Cm miter .
1102 .Qq Ar id Ns Cm :set_line_width Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc width
1103 sets the line width.
1104 Default
1105 .Ar width
1106 is 2.
1108 .Qq Ar id Ns Cm :set_source_rgba Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc color
1109 sets the color; see
1110 .Sx Color .
1112 .Qq Ar id Ns Cm :show_text Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc text
1113 writes
1114 .Ar text ,
1115 beginning at the current point.
1117 .Qq Ar id Ns Cm :stroke Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1118 strokes the current path and clears it.
1120 .Qq Ar id Ns Cm :stroke_preserve Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1121 strokes the current path without clearing it.
1123 .Qq Ar id Ns Cm :transform Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Bq Ar xx yx xy yy x0 y0
1124 modifies the current transformation matrix such that
1126 .Dl Va x' Li = Ar xx Va x Li + Ar xy Va y Li + Ar x0 ,
1127 .Dl Va y' Li = Ar yx Va y Li + Ar yy Va y Li + Ar y0 .
1129 Default is resetting the current transformation matrix.
1131 .Qq Ar id Ns Cm :translate Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc Ar tx ty
1132 translates the user space origin by
1133 .Pq Ar tx , ty .
1135 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1136 hides
1137 .Pq Cm 0
1138 the drawing area, or makes it visible
1139 .Pq Cm 1 .
1141 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1142 sets the drawing area's tooltip.
1143 Default is disabling the tooltip.
1145 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1146 writes a snapshot of the drawing area to an image file of the specified
1147 type.
1149 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1150 sets the drawing areas's minimum size to
1151 .Ar width
1153 .Ar height .
1154 Default is the natural size.
1156 .It Feedback
1157 .Bl -item
1159 none
1162 .Ss GtkEntry
1163 .Bl -tag -width indent
1164 .It Commands
1165 .Bl -item
1167 .Qq Ar id Ns Cm :set_text Ar string
1168 replaces the user-editable text with
1169 .Ar string .
1171 .Qq Ar id Ns Cm :set_placeholder_text Ar string
1172 sets the
1173 .Ar string
1174 that is displayed when the entry is empty and unfocused.
1176 .Qq Ar id Ns Cm :grab_focus
1177 puts the keyboard focus into the entry.
1179 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1180 makes the entry grayed out
1181 .Pq Cm 0
1182 or responsive
1183 .Pq Cm 1 .
1185 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1186 hides
1187 .Pq Cm 0
1188 the entry, or makes it visible
1189 .Pq Cm 1 .
1191 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1192 blocks
1193 .Pq Cm 1
1194 or unblocks
1195 .Pq Cm 0
1196 feedback messages.
1197 Initially, the entry is unblocked.
1199 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1200 sets the entry's tooltip.
1201 Default is disabling the tooltip.
1203 .Qq Ar id Ns Cm :force
1204 lets the entry report its current content.
1206 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1207 writes a snapshot of the entry to an image file of the specified
1208 type.
1210 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1211 sets the entry's minimum size to
1212 .Ar width
1214 .Ar height .
1215 Default is the entry's natural size.
1218 .Ar id Ns Cm :style
1219 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1221 sets the style.
1223 .Sx Style .
1225 .It Feedback
1226 .Bl -item
1228 .Qq Ar id Ns Cm \&:text Ar text ,
1229 once for each change of
1230 .Ar text .
1233 .Ss GtkEventBox
1234 .Ar x , y
1235 are mouse pointer coordinates relative to the
1236 .Cm GtkEventBox .
1237 .Bl -tag -width indent
1238 .It Commands
1239 .Bl -item
1241 .Qq Ar id Ns Cm :grab_focus
1242 puts the keyboard focus onto the event box.
1244 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1245 makes the event box insensitive
1246 .Pq Cm 0
1247 or responsive
1248 .Pq Cm 1 .
1250 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1251 blocks
1252 .Pq Cm 1
1253 or unblocks
1254 .Pq Cm 0
1255 feedback messages.
1256 Initially, the event box is unblocked.
1258 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1259 sets the tooltip of the event box.
1260 Default is disabling the tooltip.
1262 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1263 writes a snapshot of the event box to an image file of the specified
1264 type.
1266 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1267 sets the minimum size to
1268 .Ar width
1270 .Ar height .
1271 Default is the natural size of the event box.
1274 .Ar id Ns Cm :style
1275 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1277 sets the widget style.
1279 .Sx Style .
1281 .It Feedback
1282 .Bl -item
1284 .Qq Ar id Ns Cm \&:button_press Ar b x y ,
1285 .Qq Ar id Ns Cm \&:button_release Ar b x y
1286 where
1287 .Ar b
1288 is the mouse button (normally 1, 2, or 3 for the left, middle, and
1289 right button; others may exist).
1291 .Qq Ar id Ns Cm \&:motion Ar x y
1292 is reported repeatedly while the mouse is being moved with a button
1293 pressed.
1295 .Qq Ar id Ns Cm \&:key_press Ar key ,
1296 .Ar key
1297 being the key's name
1298 .Po e.g.
1299 .Ql Control_L ,
1300 .Ql Tab ,
1301 .Ql a
1302 .Pc .
1305 .Ss GtkExpander
1306 .Bl -tag -width indent
1307 .It Commands
1308 .Bl -item
1310 .Qq Ar id Ns Cm :set_label Ar string
1311 replaces the expander label text with
1312 .Ar string .
1314 .Qq Ar id Ns Cm :set_expanded Brq Cm 0 Ns | Ns  1
1315 hides
1316 .Pq Cm 0
1317 the child widget, or makes it visible
1318 .Pq Cm 1 .
1320 .Qq Ar id Ns Cm :grab_focus
1321 puts the keyboard focus onto the expander.
1323 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1324 makes the expander grayed out
1325 .Pq Cm 0
1326 or responsive
1327 .Pq Cm 1 .
1329 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1330 hides
1331 .Pq Cm 0
1332 the expander, or makes it visible
1333 .Pq Cm 1 .
1335 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1336 sets the expander's tooltip.
1337 Default is disabling the tooltip.
1339 .Qq Ar id Ns Cm :force
1340 toggles the expansion state.
1342 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1343 writes a snapshot of the expander to an image file of the specified
1344 type.
1346 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1347 sets the expander's minimum size to
1348 .Ar width
1350 .Ar height .
1351 Default is the natural size.
1354 .Ar id Ns Cm :style
1355 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1357 sets the style.
1359 .Sx Style .
1361 .It Feedback
1362 .Bl -item
1364 none
1367 .Ss GtkGrid
1368 .Bl -tag -width indent
1369 .It Commands
1370 .Bl -item
1372 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1373 hides
1374 .Pq Cm 0
1375 the grid, or makes it visible
1376 .Pq Cm 1 .
1378 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1379 sets the grid's tooltip.
1380 Default is disabling the tooltip.
1382 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1383 writes a snapshot of the grid to an image file of the specified
1384 type.
1386 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1387 sets the grid's minimum size to
1388 .Ar width
1390 .Ar height .
1391 Default is the grid's natural size.
1394 .Ar id Ns Cm :style
1395 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1397 sets the style.
1399 .Sx Style .
1401 .It Feedback
1402 .Bl -item
1404 none
1407 .Ss GtkFileChooserButton
1408 .Bl -tag -width indent
1409 .It Commands
1410 .Bl -item
1412 .Qq Ar id Ns Cm :set_filename Ar path
1413 preselects
1414 .Ar path
1415 to the extent it exists.
1417 .Qq Ar id Ns Cm :grab_focus
1418 puts the keyboard focus onto the button.
1420 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1421 makes the button grayed out
1422 .Pq Cm 0
1423 or responsive
1424 .Pq Cm 1 .
1426 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1427 hides
1428 .Pq Cm 0
1429 the button, or makes it visible
1430 .Pq Cm 1 .
1432 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1433 blocks
1434 .Pq Cm 1
1435 or unblocks
1436 .Pq Cm 0
1437 feedback messages.
1438 Initially, the button is unblocked.
1440 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1441 sets the button's tooltip.
1442 Default is disabling the tooltip.
1444 .Qq Ar id Ns Cm :force
1445 simulates fresh selection of the currently selected pathname.
1447 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1448 writes a snapshot of the button to an image file of the specified
1449 type.
1451 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1452 sets the button's minimum size to
1453 .Ar width
1455 .Ar height .
1456 Default is the widget's natural size.
1459 .Ar id Ns Cm :style
1460 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1462 sets the style.
1464 .Sx Style .
1466 .It Feedback
1467 .Bl -item
1469 .Qq Ar id Ns Cm \&:file Ar pathname
1470 if the selection has changed.
1473 .Ss GtkFileChooserDialog
1475 .Cm GtkFileChooserDialog
1476 with id
1477 .Ar foo
1478 will be invoked by a
1479 .Sx GtkMenuItem
1480 or a
1481 .Sx GtkImageMenuItem
1482 with id
1483 .Ar foo Ns Cm _invoke .
1486 .Cm GtkFileChooserDialog
1487 should have an
1488 .Sq OK
1489 .Sx GtkButton
1490 with id
1491 .Ar foo Ns Cm _ok
1492 .Po Cm main_ok
1493 if the dialog is the sole window of the GUI and therefore named
1494 .Cm main
1495 .Pc .
1498 .Cm GtkFileChooserDialog
1499 may have a
1500 .Sq Cancel
1501 .Sx GtkButton
1502 with id
1503 .Ar foo Ns Cm _cancel
1504 .Po Cm main_cancel
1505 if the dialog is the sole window of the GUI and therefore named
1506 .Cm main
1507 .Pc .
1510 .Cm GtkFileChooserDialog
1511 may have an
1512 .Sq Apply
1513 .Sx GtkButton
1514 with id
1515 .Ar foo Ns Cm _apply
1516 .Po Cm main_apply
1517 if the dialog is the sole window of the GUI and therefore named
1518 .Cm main
1519 .Pc .
1520 .Bl -tag -width indent
1521 .It Commands
1522 .Bl -item
1524 .Qq Ar id Ns Cm :set_filename Ar path
1525 preselects
1526 .Ar path
1527 to the extent it exists.
1529 .Qq Ar id Ns Cm :set_current_name Ar string
1530 makes
1531 .Ar string
1532 the suggested filename, which may not yet exist.
1533 .Ar string
1534 should either resemble an absolute path, or the
1535 .Ar directory
1536 must be set separately by
1537 .Ar id Ns Cm :set_filename Ar directory .
1539 .Qq Ar id Ns Cm :set_title Ar string
1540 replaces the text in the title bar with
1541 .Ar string .
1543 .Qq Ar id Ns Cm :resize Bq Ar width height
1544 changes the size of the dialog window to
1545 .Ar width
1547 .Ar height
1548 pixels if specified, or to the default size.
1550 .Qq Ar id Ns Cm :move Ar x y
1551 moves the dialog window to position
1552 .Pq Ar x , y .
1554 .Qq Ar id Ns Cm :fullscreen
1556 .Qq Ar id Ns Cm :unfullscreen
1557 switch fullscreen mode on and off.
1559 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1560 makes the dialog grayed out
1561 .Pq Cm 0
1562 or responsive
1563 .Pq Cm 1 .
1565 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1566 hides
1567 .Pq Cm 0
1568 the dialog, or makes it visible
1569 .Pq Cm 1 .
1571 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1572 blocks
1573 .Pq Cm 1
1574 or unblocks
1575 .Pq Cm 0
1576 feedback messages form the dialog window.
1577 Initially, the widget is unblocked.
1579 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1580 sets the dialog window's tooltip.
1581 Default is disabling the tooltip.
1583 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1584 writes a snapshot of the widget to an image file of the specified
1585 type.
1587 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1588 sets the widget's minimum size to
1589 .Ar width
1591 .Ar height .
1592 Default is the widget's natural size.
1595 .Ar id Ns Cm :style
1596 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1598 sets the widget style.
1600 .Sx Style .
1602 .It Feedback
1603 .Bl -item
1605 .Qq Ar id Ns Cm \&:file Ar pathname
1606 and/or
1607 .Qq Ar id Ns Cm \&:folder Ar pathname
1609 .Qq Ar id Ns Cm \&:closed
1610 if the
1611 .Cm GtkFileChooserDialog
1612 window was closed by the window manager.
1615 .Ss GtkFontButton
1616 .Bl -tag -width indent
1617 .It Commands
1618 .Bl -item
1620 .Qq Ar id Ns Cm :set_font_name Ar fontname
1621 preselects the font.
1623 .Qq Ar id Ns Cm :grab_focus
1624 puts the keyboard focus onto the button.
1626 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1627 makes the button grayed out
1628 .Pq Cm 0
1629 or responsive
1630 .Pq Cm 1 .
1632 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1633 hides
1634 .Pq Cm 0
1635 the button, or makes it visible
1636 .Pq Cm 1 .
1638 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1639 blocks
1640 .Pq Cm 1
1641 or unblocks
1642 .Pq Cm 0
1643 feedback messages.
1644 Initially, the button is unblocked.
1646 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1647 sets the button's tooltip.
1648 Default is disabling the tooltip.
1650 .Qq Ar id Ns Cm :force
1651 opens the dialog window.
1653 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1654 writes a snapshot of the button to an image file of the specified
1655 type.
1657 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1658 sets the button's minimum size to
1659 .Ar width
1661 .Ar height .
1662 Default is the button's natural size.
1665 .Ar id Ns Cm :style
1666 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1668 sets the style.
1670 .Sx Style .
1672 .It Feedback
1673 .Bl -item
1675 .Qq Ar id Ns Cm \&:font Ar fontname
1678 .Ss GtkFrame
1679 .Bl -tag -width indent
1680 .It Commands
1681 .Bl -item
1683 .Qq Ar id Ns Cm :set_label Ar text
1684 replaces the frame label text with
1685 .Ar string .
1687 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1688 makes the frame and its content grayed out
1689 .Pq Cm 0
1690 or responsive
1691 .Pq Cm 1 .
1693 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1694 hides
1695 .Pq Cm 0
1696 the frame, or makes it visible
1697 .Pq Cm 1 .
1699 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1700 sets the frame's tooltip.
1701 Default is disabling the tooltip.
1703 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1704 writes a snapshot of the frame to an image file of the specified
1705 type.
1707 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1708 sets the widget's minimum size to
1709 .Ar width
1711 .Ar height .
1712 Default is the frame's natural size.
1715 .Ar id Ns Cm :style
1716 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1718 sets the style.
1720 .Sx Style .
1722 .It Feedback
1723 .Bl -item
1725 none
1728 .Ss GtkImage
1729 .Bl -tag -width indent
1730 .It Commands
1731 .Bl -item
1733 .Qq Ar id Ns Cm :set_from_icon_name Ar icon-name
1734 replaces the image with one of the standard icons.
1736 .Qq Ar id Ns Cm :set_from_file Ar path
1737 replaces the image by the one found at
1738 .Ar path Ns .
1740 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1741 hides
1742 .Pq Cm 0
1743 the image, or makes it visible
1744 .Pq Cm 1 .
1746 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1747 sets the image's tooltip.
1748 Default is disabling the tooltip.
1750 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1751 writes a snapshot of the image to an image file of the specified
1752 type.
1754 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1755 sets the images's minimum size to
1756 .Ar width
1758 .Ar height .
1759 Default is the image's natural size.
1762 .Ar id Ns Cm :style
1763 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1765 sets the style.
1767 .Sx Style .
1769 .It Feedback
1770 .Bl -item
1772 none
1775 .Ss GtkMenu
1776 .Bl -tag -width indent
1777 .It Commands
1778 .Bl -item
1780 .Qq Ar id Ns Cm :popup ,
1781 .Qq Ar id Ns Cm :popdown
1782 displays the menu at mouse position or closes it, respectively.
1784 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1785 makes the menu grayed out
1786 .Pq Cm 0
1787 or responsive
1788 .Pq Cm 1 .
1790 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1791 sets the menu's tooltip.
1792 Default is disabling the tooltip.
1794 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1795 writes a snapshot of the (popped-up) menu to an image file of the
1796 specified type.
1798 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1799 sets the menu's minimum size to
1800 .Ar width
1802 .Ar height .
1803 Default is the menu's natural size.
1806 .Ar id Ns Cm :style
1807 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1809 sets the menu's style.
1811 .Sx Style .
1813 .It Feedback
1814 .Bl -item
1816 none
1819 .Ss GtkMenuButton
1820 .Bl -tag -width indent
1821 .It Commands
1822 .Bl -item
1824 .Qq Ar id Ns Cm :grab_focus
1825 puts the keyboard focus onto the button.
1827 .Qq Ar id Ns Cm :force
1828 simulates a click onto the button.
1830 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1831 makes the button grayed out
1832 .Pq Cm 0
1833 or responsive
1834 .Pq Cm 1 .
1836 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1837 hides
1838 .Pq Cm 0
1839 the button, or makes it visible
1840 .Pq Cm 1 .
1842 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1843 sets the button's tooltip.
1844 Default is disabling the tooltip.
1846 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
1847 writes a snapshot of the button to an image file of the specified
1848 type.
1850 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1851 sets the button's minimum size to
1852 .Ar width
1854 .Ar height .
1855 Default is the button's natural size.
1858 .Ar id Ns Cm :style
1859 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1861 sets the button's style.
1863 .Sx Style .
1865 .It Feedback
1866 .Bl -item
1868 none
1871 .Ss GtkImageMenuItem
1872 .Cm GtkImageMenuItem
1873 is deprecated.
1874 .Bl -tag -width indent
1875 .It Commands
1876 .Bl -item
1878 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1879 makes the item grayed out
1880 .Pq Cm 0
1881 or responsive
1882 .Pq Cm 1 .
1884 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1885 hides
1886 .Pq Cm 0
1887 the item, or makes it visible
1888 .Pq Cm 1 .
1890 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1891 blocks
1892 .Pq Cm 1
1893 or unblocks
1894 .Pq Cm 0
1895 feedback messages.
1896 Initially, the item is unblocked.
1898 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1899 sets the item's tooltip.
1900 Default is disabling the tooltip.
1902 .Qq Ar id Ns Cm :force
1903 simulates a click on the menu item.
1905 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1906 sets the item's minimum size to
1907 .Ar width
1909 .Ar height .
1910 Default is the item's natural size.
1913 .Ar id Ns Cm :style
1914 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1916 sets the item's style.
1918 .Sx Style .
1920 .It Feedback
1921 .Bl -item
1924 .Cm GtkImageMenuItem
1925 with id
1926 .Ar foo Ns Cm _invoke
1927 will invoke the
1928 .Sx GtkDialog
1930 .Sx GtkFileChooserDialog
1931 with id
1932 .Ar foo
1933 if it exists.
1934 If there isn't any dialog attached to the
1935 .Cm GtkImageMenuItem ,
1936 it reports
1937 .Qq Ar id Ns Cm \&:active Ar label .
1940 .Ss GtkInfoBar
1941 .Bl -tag -width indent
1942 .It Commands
1943 .Bl -item
1945 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1946 makes the info bar grayed out
1947 .Pq Cm 0
1948 or responsive
1949 .Pq Cm 1 .
1951 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1952 hides
1953 .Pq Cm 0
1954 the info bar, or makes it visible
1955 .Pq Cm 1 .
1957 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1958 sets the info bar's tooltip.
1959 Default is disabling the tooltip.
1961 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1962 sets the info bar's minimum size to
1963 .Ar width
1965 .Ar height .
1966 Default is the info bar's natural size.
1969 .Ar id Ns Cm :style
1970 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1972 sets the style.
1974 .Sx Style .
1976 .It Feedback
1977 .Bl -item
1979 none
1982 .Ss GtkLabel
1983 .Bl -tag -width indent
1984 .It Commands
1985 .Bl -item
1987 .Qq Ar id Ns Cm :set_text Ar string
1988 replaces the label text with
1989 .Ar string .
1991 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1992 makes the label grayed out
1993 .Pq Cm 0
1994 or clearly visible
1995 .Pq Cm 1 .
1997 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1998 hides
1999 .Pq Cm 0
2000 the label, or makes it visible
2001 .Pq Cm 1 .
2003 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2004 sets the label's tooltip.
2005 Default is disabling the tooltip.
2007 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2008 writes a snapshot of the label to an image file of the specified
2009 type.
2011 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2012 sets the label's minimum size to
2013 .Ar width
2015 .Ar height .
2016 Default is the natural size.
2019 .Ar id Ns Cm :style
2020 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2022 sets the label's style.
2024 .Sx Style .
2026 .It Feedback
2027 .Bl -item
2029 none
2032 .Ss GtkLinkButton
2033 .Bl -tag -width indent
2034 .It Commands
2035 .Bl -item
2037 .Qq Ar id Ns Cm :set_visited Brq Cm 0 Ns | Ns Cm 1
2038 gives the button text the appearance of an unvisited
2039 .Pq Cm 0 , No default
2040 or visited
2041 .Pq Cm 1
2042 link.
2044 .Qq Ar id Ns Cm :set_label Ar string
2045 replaces the button text with
2046 .Ar string .
2048 .Qq Ar id Ns Cm :grab_focus
2049 puts the keyboard focus onto the button.
2051 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2052 makes the button grayed out
2053 .Pq Cm 0
2054 or responsive
2055 .Pq Cm 1 .
2057 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2058 hides
2059 .Pq Cm 0
2060 the button, or makes it visible
2061 .Pq Cm 1 .
2063 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2064 blocks
2065 .Pq Cm 1
2066 or unblocks
2067 .Pq Cm 0
2068 feedback messages.
2069 Initially, the button is unblocked.
2071 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2072 sets the button's tooltip.
2073 Default is disabling the tooltip.
2075 .Qq Ar id Ns Cm :force
2076 simulates a click on the button.
2078 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2079 writes a snapshot of the button to an image file of the specified
2080 type.
2082 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2083 sets the button's minimum size to
2084 .Ar width
2086 .Ar height .
2087 Default is the button's natural size.
2090 .Ar id Ns Cm :style
2091 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2093 sets the style.
2095 .Sx Style .
2097 .It Feedback
2098 .Bl -item
2100 .Qq Ar id Ns Cm \&:clicked
2103 .Ss GtkMenuBar
2104 .Bl -tag -width indent
2105 .It Commands
2106 .Bl -item
2108 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2109 makes the menu bar grayed out
2110 .Pq Cm 0
2111 or responsive
2112 .Pq Cm 1 .
2114 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2115 hides
2116 .Pq Cm 0
2117 the menu bar, or makes it visible
2118 .Pq Cm 1 .
2120 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2121 sets the menu bar's tooltip.
2122 Default is disabling the tooltip.
2124 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2125 sets the menu bar's minimum size to
2126 .Ar width
2128 .Ar height .
2129 Default is its natural size.
2132 .Ar id Ns Cm :style
2133 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2135 sets the menu bar's style.
2137 .Sx Style .
2139 .It Feedback
2140 .Bl -item
2142 none
2145 .Ss GtkMenuItem
2146 .Bl -tag -width indent
2147 .It Commands
2148 .Bl -item
2150 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2151 makes the item grayed out
2152 .Pq Cm 0
2153 or responsive
2154 .Pq Cm 1 .
2156 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2157 hides
2158 .Pq Cm 0
2159 the item, or makes it visible
2160 .Pq Cm 1 .
2162 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2163 blocks
2164 .Pq Cm 1
2165 or unblocks
2166 .Pq Cm 0
2167 feedback messages.
2168 Initially, the item is unblocked.
2170 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2171 sets the item's tooltip.
2172 Default is disabling the tooltip.
2174 .Qq Ar id Ns Cm :force
2175 simulates a click on the menu item.
2177 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2178 sets the item's minimum size to
2179 .Ar width
2181 .Ar height .
2182 Default is the item's natural size.
2185 .Ar id Ns Cm :style
2186 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2188 sets the item's style.
2190 .Sx Style .
2192 .It Feedback
2193 .Bl -item
2196 .Cm GtkMenuItem
2197 with id
2198 .Ar foo Ns Cm _invoke
2199 will invoke the
2200 .Sx GtkDialog
2202 .Sx GtkFileChooserDialog
2203 with id
2204 .Ar foo
2205 if it exists.
2206 If there isn't any dialog attached to the
2207 .Cm GtkMenuItem ,
2208 it reports
2209 .Qq Ar id Ns Cm \&:active Ar label .
2212 .Ss GtkNotebook
2213 .Bl -tag -width indent
2214 .It Commands
2215 .Bl -item
2217 .Qq Ar id Ns Cm :set_current_page Ar n
2218 switches to zero-based page number
2219 .Ar n .
2221 .Qq Ar id Ns Cm :grab_focus
2222 puts the keyboard focus onto the notebook.
2224 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2225 makes the notebook grayed out
2226 .Pq Cm 0
2227 or responsive
2228 .Pq Cm 1 .
2230 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2231 hides
2232 .Pq Cm 0
2233 the notebook, or makes it visible
2234 .Pq Cm 1 .
2236 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2237 sets the notebook's tooltip.
2238 Default is disabling the tooltip.
2240 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2241 writes a snapshot of the notebook to an image file of the specified
2242 type.
2244 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2245 sets the notebooks's minimum size to
2246 .Ar width
2248 .Ar height .
2249 Default is the widget's natural size.
2252 .Ar id Ns Cm :style
2253 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2255 sets the notebook's style.
2257 .Sx Style .
2259 .It Feedback
2260 .Bl -item
2262 none
2265 .Ss GtkOverlay
2266 .Bl -tag -width indent
2267 .It Commands
2268 .Bl -item
2270 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2271 makes the overlay grayed out
2272 .Pq Cm 0
2273 or responsive
2274 .Pq Cm 1 .
2276 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2277 hides
2278 .Pq Cm 0
2279 the overlay, or makes it visible
2280 .Pq Cm 1 .
2282 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2283 sets the overlay's tooltip.
2284 Default is disabling the tooltip.
2286 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2287 writes a snapshot of the overlay to an image file of the specified
2288 type.
2290 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2291 sets the overlay's minimum size to
2292 .Ar width
2294 .Ar height .
2295 Default is the overlay's natural size.
2298 .Ar id Ns Cm :style
2299 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2301 sets the style.
2303 .Sx Style .
2305 .It Feedback
2306 .Bl -item
2308 none
2311 .Ss GtkPaned
2312 .Bl -tag -width indent
2313 .It Commands
2314 .Bl -item
2316 .Qq Ar id Ns Cm :grab_focus
2317 puts the keyboard focus onto the handle.
2319 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2320 makes the widget grayed out
2321 .Pq Cm 0
2322 or responsive
2323 .Pq Cm 1 .
2325 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2326 hides
2327 .Pq Cm 0
2328 the widget, or makes it visible
2329 .Pq Cm 1 .
2331 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2332 sets the widget's tooltip.
2333 Default is disabling the tooltip.
2335 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2336 writes a snapshot of the widget to an image file of the specified
2337 type.
2339 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2340 sets the widget's minimum size to
2341 .Ar width
2343 .Ar height .
2344 Default is the widget's natural size.
2347 .Ar id Ns Cm :style
2348 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2350 sets the style.
2352 .Sx Style .
2354 .It Feedback
2355 .Bl -item
2357 none
2360 .Ss GtkPlug
2361 The main window can be turned into a
2362 .Cm GtkPlug
2363 and embedded into the XEmbed socket of another process; see
2364 .Sx OPTIONS ,
2365 option
2366 .Fl e .
2367 .Ss GtkPrintUnixDialog
2368 .Bl -tag -width indent
2369 .It Commands
2370 .Bl -item
2372 .Qq Ar id Ns Cm :print Ar file.ps
2373 opens the print dialog.
2374 Pressing the
2375 .Ql Print
2376 button sends
2377 .Ar file.ps
2378 to the printer the user selected in the dialog.
2380 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2381 makes the dialog grayed out
2382 .Pq Cm 0
2383 or responsive
2384 .Pq Cm 1 .
2386 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2387 hides
2388 .Pq Cm 0
2389 the dialog, or makes it visible
2390 .Pq Cm 1 .
2392 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2393 blocks
2394 .Pq Cm 1
2395 or unblocks
2396 .Pq Cm 0
2397 feedback messages.
2398 Initially, the dialog is unblocked.
2400 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2401 sets the dialog's tooltip.
2402 Default is disabling the tooltip.
2404 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2405 writes a snapshot of the dialog to an image file of the specified
2406 type.
2408 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2409 sets the dialog's minimum size to
2410 .Ar width
2412 .Ar height .
2413 Default is the dialog's natural size.
2416 .Ar id Ns Cm :style
2417 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2419 sets the widget style.
2421 .Sx Style .
2423 .It Feedback
2424 .Bl -item
2426 .Qq Ar id Ns Cm \&:closed
2427 if the
2428 .Cm GtkPrintUnixDialog
2429 window was closed by the window manager.
2432 .Ss GtkProgressBar
2433 .Bl -tag -width indent
2434 .It Commands
2435 .Bl -item
2437 .Qq Ar id Ns Cm :set_fraction Ar x
2438 moves the progress bar to
2439 .Ar x
2440 .Pq between 0 and 1 .
2442 .Qq Ar id Ns Cm :set_text Bq Ar string
2443 replaces the text of the progress bar with
2444 .Ar string .
2445 Default is the progress percentage.
2447 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2448 hides
2449 .Pq Cm 0
2450 the progress bar, or makes it visible
2451 .Pq Cm 1 .
2453 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2454 sets the tooltip of the progressbar.
2455 Default is disabling the tooltip.
2457 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2458 writes a snapshot of the progress bar to an image file of the
2459 specified type.
2461 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2462 sets the minimum size of the progress bar to
2463 .Ar width
2465 .Ar height .
2466 Default is the natural size.
2469 .Ar id Ns Cm :style
2470 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2472 sets the style.
2474 .Sx Style .
2476 .It Feedback
2477 .Bl -item
2479 none
2482 .Ss GtkRadioButton
2483 .Bl -tag -width indent
2484 .It Commands
2485 .Bl -item
2487 .Qq Ar id Ns Cm :set_active 1
2488 switches the button on.
2489 All other buttons of the same group will go off automatically.
2491 .Qq Ar id Ns Cm :set_label Ar string
2492 replaces the button text with
2493 .Ar string .
2495 .Qq Ar id Ns Cm :grab_focus
2496 puts the keyboard focus onto the button.
2498 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2499 makes the button grayed out
2500 .Pq Cm 0
2501 or responsive
2502 .Pq Cm 1 .
2504 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2505 hides
2506 .Pq Cm 0
2507 the button, or makes it visible
2508 .Pq Cm 1 .
2510 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2511 blocks
2512 .Pq Cm 1
2513 or unblocks
2514 .Pq Cm 0
2515 feedback messages.
2516 Initially, the button is unblocked.
2518 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2519 sets the button's tooltip.
2520 Default is disabling the tooltip.
2522 .Qq Ar id Ns Cm :force
2523 simulates a click on the button.
2525 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2526 writes a snapshot of the button to an image file of the specified
2527 type.
2529 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2530 sets the button's minimum size to
2531 .Ar width
2533 .Ar height .
2534 Default is the button's natural size.
2537 .Ar id Ns Cm :style
2538 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2540 sets the style.
2542 .Sx Style .
2544 .It Feedback
2545 .Bl -item
2547 .Qq Ar id Ns Cm \&:1
2548 if switched on, or
2549 .Qq Ar id Ns Cm \&:0
2550 otherwise.
2553 .Ss GtkScale
2554 .Bl -tag -width indent
2555 .It Commands
2556 .Bl -item
2558 .Qq Ar id Ns Cm :set_value Ar x
2559 moves the slider to value
2560 .Ar x .
2562 .Qq Ar id Ns Cm :set_fill_level Bq Ar x
2563 moves the fill level indicator to value
2564 .Ar x .
2565 Default is hiding the fill level indicator.
2567 .Qq Ar id Ns Cm :set_range Ar min max
2568 changes the range.
2570 .Qq Ar id Ns Cm :set_increments Ar step page
2571 sets the steps the slider moves while pressing arrow keys and
2572 .Ql Page_Up Ns
2573 .Pf / Ql Page_Down ,
2574 respectively.
2576 .Qq Ar id Ns Cm :grab_focus
2577 puts the keyboard focus onto the scale.
2579 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2580 makes the scale grayed out
2581 .Pq Cm 0
2582 or responsive
2583 .Pq Cm 1 .
2585 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2586 hides
2587 .Pq Cm 0
2588 the scale, or makes it visible
2589 .Pq Cm 1 .
2591 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2592 blocks
2593 .Pq Cm 1
2594 or unblocks
2595 .Pq Cm 0
2596 feedback messages.
2597 Initially, the scale is unblocked.
2599 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2600 sets the scale's tooltip.
2601 Default is disabling the tooltip.
2603 .Qq Ar id Ns Cm :force
2604 simulates fresh selection of the current value.
2606 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2607 writes a snapshot of the scale to an image file of the specified
2608 type.
2610 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2611 sets the scale's minimum size to
2612 .Ar width
2614 .Ar height .
2615 Default is the natural size.
2618 .Ar id Ns Cm :style
2619 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2621 sets the style.
2623 .Sx Style .
2625 .It Feedback
2626 .Bl -item
2628 .Qq Ar id Ns Cm \&:value Ar number
2631 .Ss GtkScrolledWindow
2632 .Bl -tag -width indent
2633 .It Commands
2634 .Bl -item
2636 .Qq Ar id Ns Cm :hscroll Ar position
2638 .Qq Ar id Ns Cm :vscroll Ar position
2639 scroll
2640 .Ar position
2641 to the left or top edge of the
2642 .Cm GtkScrolledWindow ,
2643 respectively.
2645 .Qq Ar id Ns Cm :hscroll_to_range Ar pos0 pos1
2647 .Qq Ar id Ns Cm :vscroll_to_range Ar pos0 pos1
2648 scroll, if necessary, the range between
2649 .Ar pos0
2651 .Ar pos1
2652 into the
2653 .Cm GtkScrolledWindow .
2654 If the range is greater than the window, the initial part of the range
2655 will be visible.
2657 .Qq Ar id Ns Cm :grab_focus
2658 puts the keyboard focus onto the widget.
2660 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2661 makes the widget grayed out
2662 .Pq Cm 0
2663 or responsive
2664 .Pq Cm 1 .
2666 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2667 hides
2668 .Pq Cm 0
2669 the widget, or makes it visible
2670 .Pq Cm 1 .
2672 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2673 sets the widget's tooltip.
2674 Default is disabling the tooltip.
2676 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2677 writes a snapshot of the widget to an image file of the specified
2678 type.
2680 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2681 sets the minimum size to
2682 .Ar width
2684 .Ar height .
2685 Default is the widget's natural size.
2688 .Ar id Ns Cm :style
2689 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2691 sets the style.
2693 .Sx Style .
2695 .It Feedback
2696 .Bl -item
2698 none
2701 .Ss GtkSeparator
2702 .Bl -tag -width indent
2703 .It Commands
2704 .Bl -item
2706 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2707 makes the separator insensitive
2708 .Pq Cm 0
2709 or responsive
2710 .Pq Cm 1 .
2712 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2713 sets the tooltip of the separator.
2714 Default is disabling the tooltip.
2716 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2717 hides
2718 .Pq Cm 0
2719 the separator, or makes it visible
2720 .Pq Cm 1 .
2722 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2723 writes a snapshot of the separator to an image file of the specified
2724 type.
2726 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2727 sets the minimum size to
2728 .Ar width
2730 .Ar height .
2731 Default is the natural size of the separator.
2734 .Ar id Ns Cm :style
2735 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2737 sets the widget style.
2739 .Sx Style .
2741 .It Feedback
2742 .Bl -item
2744 none
2747 .Ss GtkSeparatorMenuItem
2748 .Bl -tag -width indent
2749 .It Commands
2750 .Bl -item
2752 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2753 makes the menu item insensitive
2754 .Pq Cm 0
2755 or responsive
2756 .Pq Cm 1 .
2758 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2759 hides
2760 .Pq Cm 0
2761 the menu item, or makes it visible
2762 .Pq Cm 1 .
2764 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2765 sets the tooltip of the menu item.
2766 Default is disabling the tooltip.
2768 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2769 writes a snapshot of the menu item to an image file of the specified
2770 type.
2772 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2773 sets the minimum size to
2774 .Ar width
2776 .Ar height .
2777 Default is the natural size of the menu item.
2780 .Ar id Ns Cm :style
2781 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2783 sets the widget style.
2785 .Sx Style .
2787 .It Feedback
2788 .Bl -item
2790 none
2793 .Ss GtkSizeGroup
2794 .Bl -tag -width indent
2795 .It Commands
2796 .Bl -item
2798 none
2800 .It Feedback
2801 .Bl -item
2803 none
2806 .Ss GtkSocket
2807 .Cm GtkSocket
2808 may be unsupported by Glade, but its definition can be inserted
2809 manually into the GtkBuilder
2810 .Pq Pa .ui
2811 file:
2812 .Bd -literal -offset indent
2813 <child>
2814   <object class="GtkSocket" id="socket1">
2815     <property name="visible">True</property>
2816     <property name="can_focus">True</property>
2817   </object>
2818   <packing>
2819     <property name="expand">True</property>
2820     <property name="fill">True</property>
2821     <property name="position">1</property>
2822   </packing>
2823 </child>
2825 .Bl -tag -width indent
2826 .It Commands
2827 .Bl -item
2829 .Qq Ar id Ns Cm :id
2830 requests a feedback message containing the socket
2831 .Ar xid .
2833 .Qq Ar id Ns Cm :grab_focus
2834 puts the keyboard focus onto the socket.
2836 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2837 makes the socket grayed out
2838 .Pq Cm 0
2839 or responsive
2840 .Pq Cm 1 .
2842 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2843 hides
2844 .Pq Cm 0
2845 the socket, or makes it visible
2846 .Pq Cm 1 .
2848 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2849 sets the socket's tooltip.
2850 Default is disabling the tooltip.
2851 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2852 writes a snapshot of the socket to an image file of the specified
2853 type.
2855 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2856 sets the socket's minimum size to
2857 .Ar width
2859 .Ar height .
2860 Default is the socket's natural size.
2863 .Ar id Ns Cm :style
2864 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2866 sets the style.
2868 .Sx Style .
2870 .It Feedback
2871 .Bl -item
2873 .Qq Ar id Ns Cm :id Ar xid
2874 can be used by another process to XEmbed its widgets into the
2875 .Cm GtkSocket .
2877 .Qq Ar id Ns Cm \&:plug-added ,
2879 .Ar id Ns Cm \&:plug-removed
2880 .Qc .
2881 Notification that the other process has inserted its widgets into or
2882 removed them from the
2883 .Cm GtkSocket .
2886 .Ss GtkSpinButton
2887 .Bl -tag -width indent
2888 .It Commands
2889 .Bl -item
2891 .Qq Ar id Ns Cm :set_text Ar string
2892 sets the selected value to
2893 .Ar string .
2895 .Qq Ar id Ns Cm :set_range Ar min max
2896 changes the range.
2898 .Qq Ar id Ns Cm :set_increments Ar step page
2899 sets the steps the value changes while pressing arrow keys/left mouse
2900 button, and
2901 .Ql Page_Up Ns
2902 .Pf / Ql Page_Down Ns
2903 /middle mouse button,
2904 respectively.
2906 .Qq Ar id Ns Cm :grab_focus
2907 puts the keyboard focus onto the button.
2909 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2910 makes the button grayed out
2911 .Pq Cm 0
2912 or responsive
2913 .Pq Cm 1 .
2915 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2916 hides
2917 .Pq Cm 0
2918 the button, or makes it visible
2919 .Pq Cm 1 .
2921 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2922 blocks
2923 .Pq Cm 1
2924 or unblocks
2925 .Pq Cm 0
2926 feedback messages.
2927 Initially, the button is unblocked.
2929 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2930 sets the button's tooltip.
2931 Default is disabling the tooltip.
2933 .Qq Ar id Ns Cm :force
2934 simulates fresh selection of the current value
2936 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2937 writes a snapshot of the button to an image file of the specified
2938 type.
2940 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2941 sets the button's minimum size to
2942 .Ar width
2944 .Ar height .
2945 Default is the widget's natural size.
2948 .Ar id Ns Cm :style
2949 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2951 sets the button's style.
2953 .Sx Style .
2955 .It Feedback
2956 .Bl -item
2958 .Qq Ar id Ns Cm \&:text Ar text
2961 .Ss GtkSpinner
2962 .Bl -tag -width indent
2963 .It Commands
2964 .Bl -item
2966 .Qq Ar id Ns Cm :start
2968 .Qq Ar id Ns Cm :stop
2969 start and stop the spinner.
2971 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2972 makes the spinner grayed out
2973 .Pq Cm 0
2974 or clearly visible
2975 .Pq Cm 1 .
2977 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2978 hides
2979 .Pq Cm 0
2980 the spinner, or makes it visible
2981 .Pq Cm 1 .
2983 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2984 sets the spinner's tooltip.
2985 Default is disabling the tooltip.
2987 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
2988 writes a snapshot of the spinner to an image file of the specified
2989 type.
2991 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2992 sets the spinner's minimum size to
2993 .Ar width
2995 .Ar height .
2996 Default is the natural size.
2999 .Ar id Ns Cm :style
3000 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3002 sets the style.
3004 .Sx Style .
3006 .It Feedback
3007 .Bl -item
3009 none
3012 .Ss GtkStatusbar
3013 The context parameter
3014 .Ar c
3015 is an arbitrary non-whitespace string.
3016 .Bl -tag -width indent
3017 .It Commands
3018 .Bl -item
3020 .Qq Ar id Ns Cm :push_id Ar c string ,
3021 .Qq Ar id Ns Cm :push Ar string
3022 associate
3023 .Ar string
3024 with context parameter
3025 .Ar c
3027 .Ql 0 ,
3028 respectively, and display it in the statusbar.
3030 .Qq Ar id Ns Cm :pop_id Ar c ,
3031 .Qq Ar id Ns Cm :pop
3032 remove the latest entry associated with context parameter
3033 .Ar c
3035 .Ql 0 ,
3036 respectively, from the statusbar.
3038 .Qq Ar id Ns Cm :remove_all_id Ar c ,
3039 .Qq Ar id Ns Cm :remove_all
3040 remove the entries associated with context parameter
3041 .Ar c
3043 .Ql 0 ,
3044 respectively, from the statusbar.
3046 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3047 makes the statusbar grayed out
3048 .Pq Cm 0
3049 or clearly visible
3050 .Pq Cm 1 .
3052 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3053 hides
3054 .Pq Cm 0
3055 the statusbar, or makes it visible
3056 .Pq Cm 1 .
3058 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3059 sets the statusbar's tooltip.
3060 Default is disabling the tooltip.
3062 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3063 writes a snapshot of the statusbar to an image file of the specified
3064 type.
3066 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3067 sets the statusbar's minimum size to
3068 .Ar width
3070 .Ar height .
3071 Default is the natural size.
3074 .Ar id Ns Cm :style
3075 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3077 sets the statusbar's style.
3079 .Sx Style .
3081 .It Feedback
3082 .Bl -item
3084 none
3087 .Ss GtkSwitch
3088 .Bl -tag -width indent
3089 .It Commands
3090 .Bl -item
3092 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3093 turns the switch off
3094 .Pq Cm 0
3095 or on
3096 .Pq Cm 1 .
3098 .Qq Ar id Ns Cm :grab_focus
3099 puts the keyboard focus onto the switch.
3101 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3102 makes the switch grayed out
3103 .Pq Cm 0
3104 or responsive
3105 .Pq Cm 1 .
3107 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3108 hides
3109 .Pq Cm 0
3110 the switch, or makes it visible
3111 .Pq Cm 1 .
3113 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3114 blocks
3115 .Pq Cm 1
3116 or unblocks
3117 .Pq Cm 0
3118 feedback messages.
3119 Initially, the switch is unblocked.
3121 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3122 sets the tooltip of the switch.
3123 Default is disabling the tooltip.
3125 .Qq Ar id Ns Cm :force
3126 simulates a click on the switch.
3128 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3129 writes a snapshot of the switch to an image file of the specified
3130 type.
3132 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3133 sets the switch's minimum size to
3134 .Ar width
3136 .Ar height .
3137 Default is the natural size.
3140 .Ar id Ns Cm :style
3141 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3143 sets the style.
3145 .Sx Style .
3147 .It Feedback
3148 .Bl -item
3150 .Qq Ar id Ns Cm \&:1
3151 if switched on, or
3152 .Qq Ar id Ns Cm \&:0
3153 otherwise.
3156 .Ss GtkTextView
3157 There should be a dedicated
3158 .Sx GtkButton
3159 for sending (parts of) the text.
3160 If the id of the
3161 .Cm GtkTextView
3163 .Ar foo ,
3165 .Sx GtkButton
3166 with id
3167 .Ar foo Ns Cm _send_text
3168 will send the content of the
3169 .Cm GtkTextView ;
3171 .Sx GtkButton
3172 with id
3173 .Ar foo Ns Cm _send_selection
3174 will send the highlighted part the
3175 .Cm GtkTextView .
3176 .Bl -tag -width indent
3177 .It Commands
3178 .Bl -item
3180 .Qq Ar id Ns Cm :set_text Ar string
3181 replaces the user-editable text with (potentially empty)
3182 .Ar string Ns .
3184 .Qq Ar id Ns Cm :delete
3185 deletes the text.
3187 .Qq Ar id Ns Cm :insert_at_cursor Ar string
3188 inserts
3189 .Ar string
3190 at cursor position.
3192 .Qq Ar id Ns Cm :place_cursor Brq Ar position | Cm end
3193 places the text cursor at
3194 .Ar position
3195 or at the end of the text.
3197 .Qq Ar id Ns Cm :place_cursor_at_line Ar line
3198 places the text cursor at the beginning of
3199 .Ar line .
3201 .Qq Ar id Ns Cm :scroll_to_cursor
3202 scrolls to the cursor position if necessary.
3204 .Qq Ar id Ns Cm :save Ar file
3205 stores in
3206 .Ar file
3209 command containing the text.
3211 .Qq Ar id Ns Cm :grab_focus
3212 puts the keyboard focus into the textview.
3214 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3215 makes the text view grayed out
3216 .Pq Cm 0
3217 or responsive
3218 .Pq Cm 1 .
3220 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3221 hides
3222 .Pq Cm 0
3223 the text view, or makes it visible
3224 .Pq Cm 1 .
3226 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3227 sets the tooltip of the text view.
3228 Default is disabling the tooltip.
3230 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3231 writes a snapshot of the text view to an image file of the specified
3232 type.
3234 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3235 sets the minimum size to
3236 .Ar width
3238 .Ar height .
3239 Default is the natural size.
3242 .Ar id Ns Cm :style
3243 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3245 sets the style.
3247 .Sx Style .
3249 .It Feedback
3250 .Bl -item
3252 .Qq Ar button_id Ns Cm \&:text Ar text ,
3253 .Ar button_id
3254 being the id of the
3255 .Sx GtkButton .
3256 Line endings in
3257 .Ar text
3258 are replaced by
3259 .Cm \en ,
3260 and backslashes are replaced by
3261 .Cm \e\e .
3264 .Ss GtkToggleButton
3265 .Bl -tag -width indent
3266 .It Commands
3267 .Bl -item
3269 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3270 switches the button off
3271 .Pq Cm 0
3272 or on
3273 .Pq Cm 1 .
3275 .Qq Ar id Ns Cm :set_label Ar string
3276 replaces the button text with
3277 .Ar string .
3279 .Qq Ar id Ns Cm :grab_focus
3280 puts the keyboard focus onto the button.
3282 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3283 makes the button grayed out
3284 .Pq Cm 0
3285 or responsive
3286 .Pq Cm 1 .
3288 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3289 hides
3290 .Pq Cm 0
3291 the button, or makes it visible
3292 .Pq Cm 1 .
3294 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3295 blocks
3296 .Pq Cm 1
3297 or unblocks
3298 .Pq Cm 0
3299 feedback messages.
3300 Initially, the button is unblocked.
3302 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3303 sets the button's tooltip.
3304 Default is disabling the tooltip.
3306 .Qq Ar id Ns Cm :force
3307 simulates a click on the button.
3309 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3310 writes a snapshot of the button to an image file of the specified
3311 type.
3313 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3314 sets the button's minimum size to
3315 .Ar width
3317 .Ar height .
3318 Default is the button's natural size.
3321 .Ar id Ns Cm :style
3322 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3324 sets the button's style.
3326 .Sx Style .
3328 .It Feedback
3329 .Bl -item
3331 .Qq Ar id Ns Cm \&:1
3332 if switched on, or
3333 .Qq Ar id Ns Cm \&:0
3334 otherwise.
3337 .Ss GtkTreeView
3339 can deal with columns of type
3340 .Cm gboolean , gint , guint , glong , gulong , gint64 , guint64 , gfloat , gdouble ,
3342 .Cm gchararray .
3344 .Ar row
3346 .Ar column
3347 refer to the underlying model
3348 .Cm ( GtkListStore
3350 .Cm GtkTreeStore ) .
3351 .Ar row
3352 is a sequence of one or more colon-separated integers, e.g.
3353 .Ql 3
3355 .Ql 0:0:1 .
3356 .Bl -tag -width indent
3357 .It Commands
3358 .Bl -item
3360 .Qq Ar id Ns Cm :set Ar row column data
3361 replaces the content at
3362 .Pq Ar row , column
3363 with
3364 .Ar data
3365 (which should be compatible with the type of
3366 .Ar column ) .
3367 If necessary, new tree nodes are created to obtain the minimal tree
3368 structure needed to support
3369 .Ar row .
3371 .Qq Ar id Ns Cm :insert_row Brq Ar row Bo Cm as_child Bc | Cm end
3372 inserts a new, empty row; either as a sibling of
3373 .Ar row
3374 at position
3375 .Ar row ,
3376 or as a child of
3377 .Ar row ,
3378 or at the end of the list, respectively.
3380 .Qq Ar id Ns Cm :move_row Ar origin Brq Ar destination | Cm end
3381 moves the row at
3382 .Ar origin
3383 within its current level to
3384 .Ar destination
3385 or to the end.
3387 .Qq Ar id Ns Cm :remove_row Ar row
3388 removes the row at position
3389 .Ar row .
3391 .Qq Ar id Ns Cm :clear
3392 removes all rows.
3394 .Qq Ar id Ns Cm :expand Ar row
3395 expands one level of the subtree below
3396 .Ar row .
3398 .Qq Ar id Ns Cm :expand_all Bq Ar row
3399 expands the subtree below
3400 .Ar row ,
3401 or the whole tree.
3403 .Qq Ar id Ns Cm :collapse Bq Ar row
3404 collapses the subtree below
3405 .Ar row ,
3406 or the whole tree.
3408 .Qq Ar id Ns Cm :set_cursor Bq Ar row
3409 sets the cursor to
3410 .Ar row ,
3411 or unsets it.
3413 .Qq Ar id Ns Cm :scroll Ar row column
3414 scrolls the cell at
3415 .Pq Ar row , column
3416 into view.
3418 .Qq Ar id Ns Cm :save Ar file
3419 stores the content of the underlying model as a sequence of
3421 commands into
3422 .Ar file .
3424 .Qq Ar id Ns Cm :grab_focus
3425 puts the keyboard focus onto the tree view.
3427 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3428 makes the tree view grayed out
3429 .Pq Cm 0
3430 or responsive
3431 .Pq Cm 1 .
3433 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3434 hides
3435 .Pq Cm 0
3436 the tree view, or makes it visible
3437 .Pq Cm 1 .
3439 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3440 blocks
3441 .Pq Cm 1
3442 or unblocks
3443 .Pq Cm 0
3444 feedback messages.
3445 Initially, the widget is unblocked.
3447 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3448 sets the tooltip of the tree view.
3449 Default is disabling the tooltip.
3451 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3452 writes a snapshot of the tree view to an image file of the specified
3453 type.
3455 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3456 sets the minimum size of the tree view to
3457 .Ar width
3459 .Ar height .
3460 Default is the widget's natural size.
3463 .Ar id Ns Cm :style
3464 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3466 sets the style.
3468 .Sx Style .
3470 .It Feedback
3471 .Bl -item
3473 .Qq Ar id Ns Cm \&:clicked
3475 .Qq Ar id Ns Cm \&: Ns Ar column_type row column value ,
3476 one message per cell in the underlying model for each selected row; or
3478 .Qq Ar id Ns Cm \&: Ns Ar column_type row column new_value ,
3479 if the cell at
3480 .Pq Ar row , column
3481 has been edited.
3484 .Ss GtkTreeViewColumn
3485 .Bl -tag -width indent
3486 .It Commands
3487 .Bl -item
3489 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3490 blocks
3491 .Pq Cm 1
3492 or unblocks
3493 .Pq Cm 0
3494 feedback messages.
3495 Initially, the widget is unblocked.
3497 .It Feedback
3498 .Bl -item
3500 .Qq Ar id Ns Cm \&:clicked
3503 .Ss GtkViewport
3504 .Bl -tag -width indent
3505 .It Commands
3506 .Bl -item
3508 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3509 makes the viewport insensitive
3510 .Pq Cm 0
3511 or responsive
3512 .Pq Cm 1 .
3514 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3515 hides
3516 .Pq Cm 0
3517 the viewport, or makes it visible
3518 .Pq Cm 1 .
3520 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3521 sets the tooltip of the viewport.
3522 Default is disabling the tooltip.
3524 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3525 writes a snapshot of the viewport to an image file of the specified
3526 type.
3528 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3529 sets the minimum size to
3530 .Ar width
3532 .Ar height .
3533 Default is the natural size of the viewport.
3536 .Ar id Ns Cm :style
3537 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3539 sets the widget style.
3541 .Sx Style .
3543 .It Feedback
3544 .Bl -item
3546 none
3549 .Ss GtkWindow
3550 .Bl -tag -width indent
3551 .It Commands
3552 .Bl -item
3554 .Qq Ar id Ns Cm :set_title Ar string
3555 replaces the text in the title bar with
3556 .Ar string .
3558 .Qq Ar id Ns Cm :resize Bq Ar width height
3559 changes the window size to
3560 .Ar width
3562 .Ar height
3563 pixels if specified, or to the default size.
3565 .Qq Ar id Ns Cm :move Ar x y
3566 moves the window to position
3567 .Pq Ar x , y .
3569 .Qq Ar id Ns Cm :fullscreen
3571 .Qq Ar id Ns Cm :unfullscreen
3572 switch fullscreen mode on and off.
3574 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3575 makes the widget grayed out
3576 .Pq Cm 0
3577 or responsive
3578 .Pq Cm 1 .
3580 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3581 hides
3582 .Pq Cm 0
3583 the widget, or makes it visible
3584 .Pq Cm 1 .
3586 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3587 blocks
3588 .Pq Cm 1
3589 or unblocks
3590 .Pq Cm 0
3591 feedback messages.
3592 Initially, the widget is unblocked.
3594 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3595 sets the window's tooltip.
3596 Default is disabling the tooltip.
3597 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3598 writes a snapshot of the window to an image file of the specified
3599 type.
3601 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3602 sets the window's minimum size to
3603 .Ar width
3605 .Ar height .
3606 Default is the widget's natural size.
3609 .Ar id Ns Cm :style
3610 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3612 sets the style.
3614 .Sx Style .
3616 .It Feedback
3617 .Bl -item
3619 .Qq Ar id Ns Cm \&:closed
3620 if the
3621 .Cm GtkWindow
3622 was closed by the window manager.
3625 .Sh SPECIAL SYNTAX
3626 .Ss Style
3628 .Ar id Ns Cm :style
3629 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3631 sets properties
3632 .Ar prop
3633 of the widget style to
3634 .Ar val .
3635 Properties not explicitly specified are reset to their default values.
3636 Examples:
3637 .Bl -dash -offset indent -compact
3639 .Ql label1:style font:Bold 11; background-color:green
3641 .Ql label1:style font-style:italic; font-weight:bold; color:blue
3643 .Ql button1:style background-image:url("q.png")
3645 .Ql treeview1:style background-image:linear-gradient(45deg, yellow, blue);
3647 .Ql frame1:style border-color:red yellow; border-width:5px
3649 .Ql frame1:style border-radius:10px; transition:10s
3651 For color notations see
3652 .Sx Color ,
3653 below.
3654 .Ss Color
3655 Possible
3656 .Ar color
3657 notations:
3658 .Bl -dash -offset indent -compact
3660 standard X11 colors names like
3661 .Ql blue ,
3662 .Ql Dark Sea Green ,
3664 .Ql Red ;
3666 .Ql transparent ;
3668 hexadecimal values in the form
3669 .Cm # Ns Ar rgb , Cm # Ns Ar rrggbb , Cm # Ns Ar rrrgggbbb ,
3671 .Cm # Ns Ar rrrrggggbbbb ;
3673 RGB colors in the form
3674 .Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
3676 RGBA colors in the form
3677 .Cm rgba( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns
3678 .Ar blue Ns Cm \&, Ns Ar alpha Ns Cm \&) ;
3679 .Ar red , green , blue
3680 between 0 and 255 and
3681 .Ar alpha
3682 between 0 and 1;
3684 color expressions like
3685 .Ql darker(blue)
3687 .Ql lighter(currentColor) .
3689 .Sh EXIT STATUS
3690 .Ex -std
3691 .Sh EXAMPLES
3692 .Ss Discovering Pipeglade Interactively
3693 Suppose the interface in
3694 .Pa ./pipeglade.ui
3695 has a
3696 .Sx GtkLabel Ql label1
3697 and a
3698 .Sx GtkButton Ql button1 .
3699 After invoking
3701 .Dl pipeglade
3703 and clicking the
3704 .Sx GtkButton , Ql button1:clicked
3705 will be reported on the terminal.
3706 Typing
3708 .Dl label1:set_text The Button
3710 will change the text shown on the label into
3711 .Ql The Button .
3712 .Ss One-Shot File Dialog
3713 Suppose the interface in
3714 .Pa ./simple_open.ui
3715 contains a
3716 .Sx GtkFileChooserDialog
3717 with an
3718 .Sq OK
3719 .Sx GtkButton
3720 whose id is
3721 .Ql main_ok .
3722 Invoking
3724 .Dl pipeglade -u simple_open.ui
3726 will open the dialog; pressing
3727 .Sq OK
3728 will close it after sending the selected filename to
3729 .Va stdout .
3730 .Ss One-Shot User Notification
3731 If the interface in
3732 .Pa ./simple_dialog.ui
3733 contains a
3734 .Sx GtkLabel Ql label1 ,
3735 then
3736 .Bd -literal -offset indent
3737 pipeglade -u simple_dialog.ui <<< \e
3738     "label1:set_text NOW READ THIS!"
3740 will set the label text accordingly and wait for user input.
3741 .Ss Continuous Input
3742 The following shell command displays a running clock:
3743 .Bd -literal -offset indent
3744 while true; do
3745     echo "label1:set_text `date`";
3746     sleep 1;
3747 done | pipeglade -u simple_dialog.ui
3749 .Ss Continuous Input and Output
3750 The following shell script fragment sets up
3752 for continuous communication with another program,
3753 .Pa main_prog :
3754 .Bd -literal -offset indent
3755 pipeglade -i in.fifo -o out.fifo -b
3756 main_prog <out.fifo >in.fifo
3758 .Sh SEE ALSO
3759 .Xr dialog 1 ,
3760 .Xr glade 1 ,
3761 .Xr gxmessage 1 ,
3762 .Xr kdialog 1 ,
3763 .Xr whiptail 1 ,
3764 .Xr xmessage 1 ,
3765 .Xr zenity 1
3766 .Sh AUTHOR
3768 was written by
3769 .An Bert Burgemeister
3770 .Aq Mt trebbu@googlemail.com .
3771 .Sh BUGS
3772 Due to what appears to be a bug in cairo v1.14.0,
3774 used with this library version occasionally crashes on
3775 .Cm GtkDrawingArea
3776 commands.