Change :block command on GtkTreeView for uniformity
[pipeglade.git] / pipeglade.1
blobec75ad4b9d4df5ae2534d2899c12dc4dd8b855f2
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 June 24, 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 GtkBox ,
206 .Sx GtkButton ,
207 .Sx GtkButtonBox ,
208 .Sx GtkCalendar ,
209 .Sx GtkCheckButton ,
210 .Sx GtkColorButton ,
211 .Sx GtkComboBoxText ,
212 .Sx GtkDialog ,
213 .Sx GtkDrawingArea ,
214 .Sx GtkEntry ,
215 .Sx GtkEventBox ,
216 .Sx GtkExpander ,
217 .Sx GtkFileChooserButton ,
218 .Sx GtkFileChooserDialog ,
219 .Sx GtkFontButton ,
220 .Sx GtkFrame ,
221 .Sx GtkGrid ,
222 .Sx GtkImage ,
223 .Sx GtkImageMenuItem ,
224 .Sx GtkInfoBar ,
225 .Sx GtkLabel ,
226 .Sx GtkMenuItem ,
227 .Sx GtkNotebook ,
228 .Sx GtkOverlay ,
229 .Sx GtkPlug ,
230 .Sx GtkPrintUnixDialog ,
231 .Sx GtkProgressBar ,
232 .Sx GtkRadioButton ,
233 .Sx GtkScale ,
234 .Sx GtkScrolledWindow ,
235 .Sx GtkSeparator ,
236 .Sx GtkSeparatorMenuItem ,
237 .Sx GtkSocket ,
238 .Sx GtkSpinButton ,
239 .Sx GtkSpinner ,
240 .Sx GtkStatusbar ,
241 .Sx GtkSwitch ,
242 .Sx GtkTextView ,
243 .Sx GtkToggleButton ,
244 .Sx GtkTreeView ,
245 .Sx GtkTreeViewColumn ,
246 .Sx GtkViewport ,
248 .Sx GtkWindow .
249 .\" END_TOC
252 references a widget by the
253 .Ar id
254 attribute it is given in Glade.
255 In the
256 .Pa .ui
257 file, a
258 .Cm GtkWindow
259 named
260 .Li foo
261 would appear as
262 .Dl <object class="GtkWindow" id="foo"> .
264 .\" Commands most widgets understand:
266 .\"  set_visible
267 .\"  set_sensitive
268 .\"  grab_focus
269 .\"  set_tooltip_text
270 .\"  block
271 .\"  set_size_request
272 .\"  style
273 .\"  force
274 .\"  snapshot
276 .Ss Unspecific Widget
277 .Bl -tag -width "commands "
278 .It Commands
280 .Qq Ar id Ns Cm :load Ar file
281 reads arbitrary
283 commands from
284 .Ar file .
285 A non-empty
286 .Ar id
287 is required but ignored.
288 .Cm :load
289 commands may be nested but on attempts to read from the same file, the
290 inner
291 .Cm :load
292 is ignored.
293 There is also a
294 .Cm :save
295 command; see
296 .Sx GtkTextView
298 .Sx GtkTreeView .
300 .Qq Ar id Ns Cm :main_quit
301 kills the user interface.
302 A non-empty
303 .Ar id
304 is required but ignored.
306 .Ss GtkBox
307 .Bl -tag -width "commands "
308 .It Commands
309 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
310 makes the box grayed out
311 .Pq Cm 0
312 or responsive
313 .Pq Cm 1 .
315 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
316 hides
317 .Pq Cm 0
318 the box, or makes it visible
319 .Pq Cm 1 .
320 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
321 sets the box's tooltip.
322 Default is disabling the tooltip.
324 .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
325 writes a snapshot of the box to an image file of the specified
326 type.
328 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
329 sets the box's minimum size to
330 .Ar width
332 .Ar height .
333 Default is the box's natural size.
336 .Ar id Ns Cm :style
337 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
339 sets the style.
341 .Sx Style .
342 .It Feedback
343 none
345 .Ss GtkButton
346 .Bl -tag -width "commands "
347 .It Commands
348 .Qq Ar id Ns Cm :set_label Ar string
349 replaces the button text with
350 .Ar string .
352 .Qq Ar id Ns Cm :grab_focus
353 puts the keyboard focus onto the button.
355 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
356 makes the button grayed out
357 .Pq Cm 0
358 or responsive
359 .Pq Cm 1 .
361 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
362 hides
363 .Pq Cm 0
364 the widget, or makes it visible
365 .Pq Cm 1 .
367 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
368 blocks
369 .Pq Cm 1
370 or unblocks
371 .Pq Cm 0
372 feedback messages.
373 Initially, the button is unblocked.
375 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
376 sets the button's tooltip.
377 Default is disabling the tooltip.
379 .Qq Ar id Ns Cm :force
380 simulates a click on the button.
382 .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
383 writes a snapshot of the button to an image file of the specified
384 type.
386 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
387 sets the button's minimum size to
388 .Ar width
390 .Ar height .
391 Default is the button's natural size.
394 .Ar id Ns Cm :style
395 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
397 sets the style.
399 .Sx Style .
400 .It Feedback
401 .Qq Ar id Ns Cm \&:clicked
403 .Cm GtkButton Ns
404 s with ids ending in
405 .Cm _ok , _apply , _cancel , _send_text ,
407 .Cm _send_selection
408 may work differently; see
409 .Sx GtkDialog , GtkFileChooserDialog ,
411 .Sx GtkTextView
412 for details.
414 .Ss GtkButtonBox
415 .Bl -tag -width "commands "
416 .It Commands
417 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
418 makes the box grayed out
419 .Pq Cm 0
420 or responsive
421 .Pq Cm 1 .
423 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
424 hides
425 .Pq Cm 0
426 the box, or makes it visible
427 .Pq Cm 1 .
429 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
430 sets the box's tooltip.
431 Default is disabling the tooltip.
433 .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
434 writes a snapshot of the box to an image file of the specified
435 type.
437 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
438 sets the box's minimum size to
439 .Ar width
441 .Ar height .
442 Default is the box's natural size.
445 .Ar id Ns Cm :style
446 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
448 sets the style.
450 .Sx Style .
451 .It Feedback
452 none
454 .Ss GtkCalendar
455 .Bl -tag -width "commands "
456 .It Commands
457 .Qq Ar id Ns Cm :select_date Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
458 selects the date on the calendar.
460 .Qq Ar id Ns Cm :mark_day Ar day
461 marks
462 .Ar day Pq 1-31
463 on the calendar.
465 .Qq Ar id Ns Cm :clear_marks
466 unmarks all days on the calendar.
468 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
469 makes the calendar grayed out
470 .Pq Cm 0
471 or responsive
472 .Pq Cm 1 .
474 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
475 hides
476 .Pq Cm 0
477 the calendar, or makes it visible
478 .Pq Cm 1 .
480 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
481 blocks
482 .Pq Cm 1
483 or unblocks
484 .Pq Cm 0
485 feedback messages.
486 Initially, the calendar is unblocked.
488 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
489 sets the calendar's tooltip.
490 Default is disabling the tooltip.
492 .Qq Ar id Ns Cm :force
493 simulates a click on the currently selected date.
495 .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
496 writes a snapshot of the calendar to an image file of the specified
497 type.
499 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
500 sets the calendar's minimum size to
501 .Ar width
503 .Ar height .
504 Default is the widget's natural size.
507 .Ar id Ns Cm :style
508 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
510 sets the calendar's style.
512 .Sx Style .
513 .It Feedback
514 .Qq Ar id Ns Cm \&:clicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
516 .Qq Ar id Ns Cm \&:doubleclicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
518 .Ss GtkCheckButton
519 .Bl -tag -width "commands "
520 .It Commands
521 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
522 switches the check mark off
523 .Pq Cm 0
524 or on
525 .Pq Cm 1 .
527 .Qq Ar id Ns Cm :set_label Ar string
528 replaces the button text with
529 .Ar string .
531 .Qq Ar id Ns Cm :grab_focus
532 puts the keyboard focus onto the button.
534 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
535 makes the button grayed out
536 .Pq Cm 0
537 or responsive
538 .Pq Cm 1 .
540 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
541 hides
542 .Pq Cm 0
543 the button, or makes it visible
544 .Pq Cm 1 .
546 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
547 blocks
548 .Pq Cm 1
549 or unblocks
550 .Pq Cm 0
551 feedback messages.
552 Initially, the button is unblocked.
554 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
555 sets the button's tooltip.
556 Default is disabling the tooltip.
558 .Qq Ar id Ns Cm :force
559 simulates a click on the button.
561 .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
562 writes a snapshot of the button to an image file of the specified
563 type.
565 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
566 sets the button's minimum size to
567 .Ar width
569 .Ar height .
570 Default is the widget's natural size.
573 .Ar id Ns Cm :style
574 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
576 sets the button's style.
578 .Sx Style .
579 .It Feedback
580 .Qq Ar id Ns Cm \&:1
581 if switched on, or
582 .Qq Ar id Ns Cm \&:0
583 otherwise.
585 .Ss GtkColorButton
586 .Bl -tag -width "commands "
587 .It Commands
588 .Qq Ar id Ns Cm :set_color Ar color
589 preselects the color; see
590 .Sx Color .
592 .Qq Ar id Ns Cm :grab_focus
593 puts the keyboard focus onto the button.
595 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
596 makes the button grayed out
597 .Pq Cm 0
598 or responsive
599 .Pq Cm 1 .
601 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
602 hides
603 .Pq Cm 0
604 the button, or makes it visible
605 .Pq Cm 1 .
607 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
608 blocks
609 .Pq Cm 1
610 or unblocks
611 .Pq Cm 0
612 feedback messages.
613 Initially, the button is unblocked.
615 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
616 sets the button's tooltip.
617 Default is disabling the tooltip.
619 .Qq Ar id Ns Cm :force
620 opens the dialog window.
622 .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
623 writes a snapshot of the button to an image file of the specified
624 type.
626 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
627 sets the button's minimum size to
628 .Ar width
630 .Ar height .
631 Default is the widget's natural size.
634 .Ar id Ns Cm :style
635 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
637 sets the button's style.
639 .Sx Style .
640 .It Feedback
641 .Qq Ar id Ns Cm \&:color Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
643 .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 \&) .
644 .Ar red , green ,
646 .Ar blue
647 lie between 0 and 255, and
648 .Ar alpha
649 between 0 and 1.
651 .Ss GtkComboBoxText
653 .Cm GtkComboBoxText
654 should contain a
655 .Cm GtkEntry .
656 .Bl -tag -width "commands "
657 .It Commands
658 .Qq Ar id Ns Cm :prepend_text Ar string
660 .Qq Ar id Ns Cm :append_text Ar string
661 prepend/append a new selectable item marked
662 .Ar string .
664 .Qq Ar id Ns Cm :insert_text Ar position string
665 inserts item
666 .Ar string
668 .Ar position .
670 .Qq Ar id Ns Cm :remove Ar position
671 removes the item at
672 .Ar position .
674 .Qq Ar id Ns Cm :grab_focus
675 puts the keyboard focus onto the combo box.
677 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
678 makes the combo box grayed out
679 .Pq Cm 0
680 or responsive
681 .Pq Cm 1 .
683 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
684 hides
685 .Pq Cm 0
686 the combo box, or makes it visible
687 .Pq Cm 1 .
689 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
690 blocks
691 .Pq Cm 1
692 or unblocks
693 .Pq Cm 0
694 feedback messages.
695 Initially, the combo box is unblocked.
697 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
698 sets the tooltip.
699 Default is disabling the tooltip.
701 .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
702 writes a snapshot of the combo box to an image file of the specified
703 type.
705 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
706 sets the combo box's minimum size to
707 .Ar width
709 .Ar height .
710 Default is the natural size.
713 .Ar id Ns Cm :style
714 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
716 sets the style.
718 .Sx Style .
719 .It Feedback
720 .Qq Ar entry_id Ns Cm \&:text Ar text ,
721 .Ar entry_id
722 being the id of the child
723 .Cm GtkEntry .
725 .Ss GtkDialog
727 .Cm GtkDialog
728 with id
729 .Ar foo
730 will be invoked by a
731 .Sx GtkMenuItem
732 or a
733 .Sx GtkImageMenuItem
734 with id
735 .Ar foo Ns Cm _invoke .
738 .Cm GtkDialog
739 should have a
740 .Sq Cancel
741 .Sx GtkButton
742 with id
743 .Ar foo Ns Cm _cancel
744 .Po Cm main_cancel
745 if the dialog is the sole window of the GUI and therefore named
746 .Cm main
747 .Pc .
749 If the
750 .Cm GtkDialog
751 has an
752 .Sq Ok
753 .Sx GtkButton
754 with id
755 .Ar foo Ns Cm _ok ,
756 it will take care of hiding the dialog window.
757 .Bl -tag -width "commands "
758 .It Commands
759 .Qq Ar id Ns Cm :set_title Ar string
760 replaces the text in the title bar with
761 .Ar string .
763 .Qq Ar id Ns Cm :resize Bq Ar width height
764 changes the size of the dialog window to
765 .Ar width
767 .Ar height
768 pixels if specified, or to the default size.
770 .Qq Ar id Ns Cm :move Ar x y
771 moves the dialog window to position
772 .Pq Ar x , y .
774 .Qq Ar id Ns Cm :fullscreen
776 .Qq Ar id Ns Cm :unfullscreen
777 switch fullscreen mode on and off.
779 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
780 makes the dialog grayed out
781 .Pq Cm 0
782 or responsive
783 .Pq Cm 1 .
785 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
786 hides
787 .Pq Cm 0
788 the dialog, or makes it visible
789 .Pq Cm 1 .
791 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
792 blocks
793 .Pq Cm 1
794 or unblocks
795 .Pq Cm 0
796 feedback messages from the dialog window.
797 Initially, the window is unblocked.
799 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
800 sets the dialog window's tooltip.
801 Default is disabling the tooltip.
803 .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
804 writes a snapshot of the dialog window to an image file of the
805 specified type.
807 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
808 sets the dialog window's minimum size to
809 .Ar width
811 .Ar height .
812 Default is its natural size.
815 .Ar id Ns Cm :style
816 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
818 sets the dialog window's style.
820 .Sx Style .
821 .It Feedback
822 .Qq Ar id Ns Cm \&:closed
823 if the
824 .Cm GtkDialog
825 window was closed by the window manager.
827 .Ss GtkDrawingArea
828 Drawing commands
829 expect a context parameter of the form
830 .Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
831 where
832 .Ar n
833 is an arbitrary non-negative integer that can be used later to
834 reference the command.
835 The first form,
836 .Ar n ,
837 appends its command to the current list of drawing operations.
838 The second form,
839 .Cm = Ns Ar n ,
840 replaces the first drawing operation with context parameter
841 .Ar n
842 by the new command.
843 The third form,
844 .Ar n Ns Cm < Ns Ar m ,
845 inserts its command before the first drawing operation with context
846 parameter
847 .Ar m .
848 Both second and third form fall back to appending.
850 The default coordinate system is a left-handed system with its origin
851 in the upper-left corner.
852 Angles increase from the positive X axis towards the positve Y axis
853 .Pq clockwise in the default system .
854 .Bl -tag -width "commands "
855 .It Commands
856 .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
857 adds a circular arc to the current path.
858 The arc is centered at
859 .Pq Ar x , y
860 and proceeds from
861 .Ar angle1
863 .Ar angle2
864 .Pq in degrees .
866 .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
867 adds a circular arc to the current path.
868 The arc is centered at
869 .Pq Ar x , y
870 and proceeds in the direction of decreasing angles from
871 .Ar angle1
873 .Ar angle2
874 .Pq in degrees .
876 .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
877 adds a line segment from the current point to the point most recently
878 passed to
879 .Ar id Ns Cm :move_to
881 .Ar id Ns Cm :rel_move_to .
883 .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
884 adds a cubic Bezier spline from the current point to
885 .Pq Ar x3 , y3 ,
886 using
887 .Pq Ar x1 , y1
889 .Pq Ar x2 , y2
890 as control points.
891 If there is no current point, the curve will start at
892 .Pq Ar x1 , y1 .
894 .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
895 fills the current path and clears it.
897 .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
898 fills the current path without clearing it.
900 .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
901 adds a line from the current point to
902 .Pq Ar x , y ,
903 or creates a new current point at
904 .Pq Ar x , y .
906 .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
907 sets the current point to
908 .Pq Ar x , y .
910 .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
911 adds a rectangle to the current path.
912 The top left corner is at
913 .Pq Ar x , y .
915 .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
916 adds a cubic Bezier spline from the current point to
917 .Pq Ar dx3 , dy3 ,
918 using
919 .Pq Ar dx1 , dy1
921 .Pq Ar dx2 , dy2
922 as control points.
923 All coordinates are offsets relative to the current point.
925 .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
926 adds a line from the current point to a point offset from there by
927 .Pq Ar dx , dy .
929 .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
930 .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
931 .Ar text
933 moves the current point such that
934 .Qq Ar id Ns Cm :show_text Ar n text
935 will place the specified reference point of
936 .Ar text
937 on the original current point.
939 .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
940 moves the current point by
941 .Pq Ar dx , dy .
943 .Qq Ar id Ns Cm :remove Ar n
944 removes the elements with context parameter
945 .Ar n
946 from the
947 .Cm GtkDrawingArea Ar id .
949 .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
950 rotates the user space axes by
951 .Ar angle
952 .Pq in degrees .
954 .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
955 scales the user space axes by
956 .Pq Ar sx , sy .
958 .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
959 sets the dash pattern to
960 .Ar l
962 .Ar l
963 off.
965 .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 ...
966 resets the dash pattern to a line with arbitrary on/off portions.
968 .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
969 resets the dash pattern to a solid line.
971 .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
972 .Brq Cm normal | italic | oblique
973 .Brq Cm normal | bold
974 .Bq Ar family
976 sets the font face for subsequent calls of
977 .Ar id Ns Cm :show_text .
979 .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
980 sets the font size for subsequent calls of
981 .Ar id Ns Cm :show_text .
983 .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
984 sets the line cap style.
985 Default is
986 .Cm butt .
988 .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
989 sets the line junction style.
990 Default is
991 .Cm miter .
993 .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
994 sets the line width.
995 Default
996 .Ar width
997 is 2.
999 .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
1000 sets the color; see
1001 .Sx Color .
1003 .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
1004 writes
1005 .Ar text ,
1006 beginning at the current point.
1008 .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
1009 strokes the current path and clears it.
1011 .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
1012 strokes the current path without clearing it.
1014 .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
1015 modifies the current transformation matrix such that
1017 .Dl Va x' Li = Ar xx Va x Li + Ar xy Va y Li + Ar x0 ,
1018 .Dl Va y' Li = Ar yx Va y Li + Ar yy Va y Li + Ar y0 .
1020 Default is resetting the current transformation matrix.
1022 .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
1023 translates the user space origin by
1024 .Pq Ar tx , ty .
1026 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1027 hides
1028 .Pq Cm 0
1029 the drawing area, or makes it visible
1030 .Pq Cm 1 .
1032 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1033 sets the drawing area's tooltip.
1034 Default is disabling the tooltip.
1036 .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
1037 writes a snapshot of the drawing area to an image file of the specified
1038 type.
1040 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1041 sets the drawing areas's minimum size to
1042 .Ar width
1044 .Ar height .
1045 Default is the natural size.
1046 .It Feedback
1047 none
1049 .Ss GtkEntry
1050 .Bl -tag -width "commands "
1051 .It Commands
1052 .Qq Ar id Ns Cm :set_text Ar string
1053 replaces the user-editable text with
1054 .Ar string .
1056 .Qq Ar id Ns Cm :set_placeholder_text Ar string
1057 sets the
1058 .Ar string
1059 that is displayed when the entry is empty and unfocused.
1061 .Qq Ar id Ns Cm :grab_focus
1062 puts the keyboard focus into the entry.
1064 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1065 makes the entry grayed out
1066 .Pq Cm 0
1067 or responsive
1068 .Pq Cm 1 .
1070 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1071 hides
1072 .Pq Cm 0
1073 the entry, or makes it visible
1074 .Pq Cm 1 .
1076 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1077 blocks
1078 .Pq Cm 1
1079 or unblocks
1080 .Pq Cm 0
1081 feedback messages.
1082 Initially, the entry is unblocked.
1084 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1085 sets the entry's tooltip.
1086 Default is disabling the tooltip.
1088 .Qq Ar id Ns Cm :force
1089 lets the entry report its current content.
1091 .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
1092 writes a snapshot of the entry to an image file of the specified
1093 type.
1095 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1096 sets the entry's minimum size to
1097 .Ar width
1099 .Ar height .
1100 Default is the entry's natural size.
1103 .Ar id Ns Cm :style
1104 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1106 sets the style.
1108 .Sx Style .
1109 .It Feedback
1110 .Qq Ar id Ns Cm \&:text Ar text ,
1111 once for each change of
1112 .Ar text .
1114 .Ss GtkEventBox
1115 .Ar x , y
1116 are mouse pointer coordinates relative to the
1117 .Cm GtkEventBox .
1118 .Bl -tag -width "commands "
1119 .It Commands
1120 .Qq Ar id Ns Cm :grab_focus
1121 puts the keyboard focus onto the event box.
1123 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1124 makes the event box insensitive
1125 .Pq Cm 0
1126 or responsive
1127 .Pq Cm 1 .
1129 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1130 blocks
1131 .Pq Cm 1
1132 or unblocks
1133 .Pq Cm 0
1134 feedback messages.
1135 Initially, the event box is unblocked.
1137 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1138 sets the tooltip of the event box.
1139 Default is disabling the tooltip.
1141 .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
1142 writes a snapshot of the event box to an image file of the specified
1143 type.
1145 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1146 sets the minimum size to
1147 .Ar width
1149 .Ar height .
1150 Default is the natural size of the event box.
1153 .Ar id Ns Cm :style
1154 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1156 sets the widget style.
1158 .Sx Style .
1159 .It Feedback
1160 .Qq Ar id Ns Cm \&:button_press Ar b x y ,
1161 .Qq Ar id Ns Cm \&:button_release Ar b x y
1162 where
1163 .Ar b
1164 is the mouse button (normally 1, 2, or 3 for the left, middle, and
1165 right button; others may exist).
1167 .Qq Ar id Ns Cm \&:motion Ar x y
1168 is reported repeatedly while the mouse is being moved with a button
1169 pressed.
1171 .Qq Ar id Ns Cm \&:key_press Ar key ,
1172 .Ar key
1173 being the key's name
1174 .Po e.g.
1175 .Ql Control_L ,
1176 .Ql Tab ,
1177 .Ql a
1178 .Pc .
1180 .Ss GtkExpander
1181 .Bl -tag -width "commands "
1182 .It Commands
1183 .Qq Ar id Ns Cm :set_label Ar string
1184 replaces the expander label text with
1185 .Ar string .
1187 .Qq Ar id Ns Cm :set_expanded Brq Cm 0 Ns | Ns  1
1188 hides
1189 .Pq Cm 0
1190 the child widget, or makes it visible
1191 .Pq Cm 1 .
1193 .Qq Ar id Ns Cm :grab_focus
1194 puts the keyboard focus onto the expander.
1196 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1197 makes the expander grayed out
1198 .Pq Cm 0
1199 or responsive
1200 .Pq Cm 1 .
1202 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1203 hides
1204 .Pq Cm 0
1205 the expander, or makes it visible
1206 .Pq Cm 1 .
1208 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1209 sets the expander's tooltip.
1210 Default is disabling the tooltip.
1212 .Qq Ar id Ns Cm :force
1213 toggles the expansion state.
1215 .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
1216 writes a snapshot of the expander to an image file of the specified
1217 type.
1219 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1220 sets the expander's minimum size to
1221 .Ar width
1223 .Ar height .
1224 Default is the natural size.
1227 .Ar id Ns Cm :style
1228 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1230 sets the style.
1232 .Sx Style .
1233 .It Feedback
1234 none
1236 .Ss GtkGrid
1237 .Bl -tag -width "commands "
1238 .It Commands
1239 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1240 hides
1241 .Pq Cm 0
1242 the grid, or makes it visible
1243 .Pq Cm 1 .
1244 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1245 sets the grid's tooltip.
1246 Default is disabling the tooltip.
1248 .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
1249 writes a snapshot of the grid to an image file of the specified
1250 type.
1252 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1253 sets the grid's minimum size to
1254 .Ar width
1256 .Ar height .
1257 Default is the grid's natural size.
1260 .Ar id Ns Cm :style
1261 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1263 sets the style.
1265 .Sx Style .
1266 .It Feedback
1267 none
1269 .Ss GtkFileChooserButton
1270 .Bl -tag -width "commands "
1271 .It Commands
1272 .Qq Ar id Ns Cm :set_filename Ar path
1273 preselects
1274 .Ar path
1275 to the extent it exists.
1277 .Qq Ar id Ns Cm :grab_focus
1278 puts the keyboard focus onto the button.
1280 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1281 makes the button grayed out
1282 .Pq Cm 0
1283 or responsive
1284 .Pq Cm 1 .
1286 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1287 hides
1288 .Pq Cm 0
1289 the button, or makes it visible
1290 .Pq Cm 1 .
1292 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1293 blocks
1294 .Pq Cm 1
1295 or unblocks
1296 .Pq Cm 0
1297 feedback messages.
1298 Initially, the button is unblocked.
1300 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1301 sets the button's tooltip.
1302 Default is disabling the tooltip.
1304 .Qq Ar id Ns Cm :force
1305 simulates fresh selection of the currently selected pathname.
1307 .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
1308 writes a snapshot of the button to an image file of the specified
1309 type.
1311 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1312 sets the button's minimum size to
1313 .Ar width
1315 .Ar height .
1316 Default is the widget's natural size.
1319 .Ar id Ns Cm :style
1320 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1322 sets the style.
1324 .Sx Style .
1325 .It Feedback
1326 .Qq Ar id Ns Cm \&:file Ar pathname
1327 if the selection has changed.
1329 .Ss GtkFileChooserDialog
1331 .Cm GtkFileChooserDialog
1332 with id
1333 .Ar foo
1334 will be invoked by a
1335 .Sx GtkMenuItem
1336 or a
1337 .Sx GtkImageMenuItem
1338 with id
1339 .Ar foo Ns Cm _invoke .
1342 .Cm GtkFileChooserDialog
1343 should have an
1344 .Sq OK
1345 .Sx GtkButton
1346 with id
1347 .Ar foo Ns Cm _ok
1348 .Po Cm main_ok
1349 if the dialog is the sole window of the GUI and therefore named
1350 .Cm main
1351 .Pc .
1354 .Cm GtkFileChooserDialog
1355 may have a
1356 .Sq Cancel
1357 .Sx GtkButton
1358 with id
1359 .Ar foo Ns Cm _cancel
1360 .Po Cm main_cancel
1361 if the dialog is the sole window of the GUI and therefore named
1362 .Cm main
1363 .Pc .
1366 .Cm GtkFileChooserDialog
1367 may have an
1368 .Sq Apply
1369 .Sx GtkButton
1370 with id
1371 .Ar foo Ns Cm _apply
1372 .Po Cm main_apply
1373 if the dialog is the sole window of the GUI and therefore named
1374 .Cm main
1375 .Pc .
1376 .Bl -tag -width "commands "
1377 .It Commands
1378 .Qq Ar id Ns Cm :set_filename Ar path
1379 preselects
1380 .Ar path
1381 to the extent it exists.
1383 .Qq Ar id Ns Cm :set_current_name Ar string
1384 makes
1385 .Ar string
1386 the suggested filename, which may not yet exist.
1387 .Ar string
1388 should either resemble an absolute path, or the
1389 .Ar directory
1390 must be set separately by
1391 .Ar id Ns Cm :set_filename Ar directory .
1393 .Qq Ar id Ns Cm :set_title Ar string
1394 replaces the text in the title bar with
1395 .Ar string .
1397 .Qq Ar id Ns Cm :resize Bq Ar width height
1398 changes the size of the dialog window to
1399 .Ar width
1401 .Ar height
1402 pixels if specified, or to the default size.
1404 .Qq Ar id Ns Cm :move Ar x y
1405 moves the dialog window to position
1406 .Pq Ar x , y .
1408 .Qq Ar id Ns Cm :fullscreen
1410 .Qq Ar id Ns Cm :unfullscreen
1411 switch fullscreen mode on and off.
1413 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1414 makes the dialog grayed out
1415 .Pq Cm 0
1416 or responsive
1417 .Pq Cm 1 .
1419 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1420 hides
1421 .Pq Cm 0
1422 the dialog, or makes it visible
1423 .Pq Cm 1 .
1425 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1426 blocks
1427 .Pq Cm 1
1428 or unblocks
1429 .Pq Cm 0
1430 feedback messages form the dialog window.
1431 Initially, the widget is unblocked.
1433 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1434 sets the dialog window's tooltip.
1435 Default is disabling the tooltip.
1437 .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
1438 writes a snapshot of the widget to an image file of the specified
1439 type.
1441 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1442 sets the widget's minimum size to
1443 .Ar width
1445 .Ar height .
1446 Default is the widget's natural size.
1449 .Ar id Ns Cm :style
1450 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1452 sets the widget style.
1454 .Sx Style .
1455 .It Feedback
1456 .Qq Ar id Ns Cm \&:file Ar pathname
1457 and/or
1458 .Qq Ar id Ns Cm \&:folder Ar pathname
1460 .Qq Ar id Ns Cm \&:closed
1461 if the
1462 .Cm GtkFileChooserDialog
1463 window was closed by the window manager.
1465 .Ss GtkFontButton
1466 .Bl -tag -width "commands "
1467 .It Commands
1468 .Qq Ar id Ns Cm :set_font_name Ar fontname
1469 preselects the font.
1471 .Qq Ar id Ns Cm :grab_focus
1472 puts the keyboard focus onto the button.
1474 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1475 makes the button grayed out
1476 .Pq Cm 0
1477 or responsive
1478 .Pq Cm 1 .
1480 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1481 hides
1482 .Pq Cm 0
1483 the button, or makes it visible
1484 .Pq Cm 1 .
1486 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1487 blocks
1488 .Pq Cm 1
1489 or unblocks
1490 .Pq Cm 0
1491 feedback messages.
1492 Initially, the button is unblocked.
1494 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1495 sets the button's tooltip.
1496 Default is disabling the tooltip.
1498 .Qq Ar id Ns Cm :force
1499 opens the dialog window.
1501 .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
1502 writes a snapshot of the button to an image file of the specified
1503 type.
1505 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1506 sets the button's minimum size to
1507 .Ar width
1509 .Ar height .
1510 Default is the button's natural size.
1513 .Ar id Ns Cm :style
1514 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1516 sets the style.
1518 .Sx Style .
1519 .It Feedback
1520 .Qq Ar id Ns Cm \&:font Ar fontname
1522 .Ss GtkFrame
1523 .Bl -tag -width "commands "
1524 .It Commands
1525 .Qq Ar id Ns Cm :set_label Ar text
1526 replaces the frame label text with
1527 .Ar string .
1529 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1530 makes the frame and its content grayed out
1531 .Pq Cm 0
1532 or responsive
1533 .Pq Cm 1 .
1535 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1536 hides
1537 .Pq Cm 0
1538 the frame, or makes it visible
1539 .Pq Cm 1 .
1541 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1542 sets the frame's tooltip.
1543 Default is disabling the tooltip.
1545 .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
1546 writes a snapshot of the frame to an image file of the specified
1547 type.
1549 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1550 sets the widget's minimum size to
1551 .Ar width
1553 .Ar height .
1554 Default is the frame's natural size.
1557 .Ar id Ns Cm :style
1558 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1560 sets the style.
1562 .Sx Style .
1563 .It Feedback
1564 none
1566 .Ss GtkImage
1567 .Bl -tag -width "commands "
1568 .It Commands
1569 .Qq Ar id Ns Cm :set_from_icon_name Ar icon-name
1570 replaces the image with one of the standard icons.
1572 .Qq Ar id Ns Cm :set_from_file Ar path
1573 replaces the image by the one found at
1574 .Ar path Ns .
1576 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1577 hides
1578 .Pq Cm 0
1579 the image, or makes it visible
1580 .Pq Cm 1 .
1582 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1583 sets the image's tooltip.
1584 Default is disabling the tooltip.
1586 .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
1587 writes a snapshot of the image to an image file of the specified
1588 type.
1590 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1591 sets the images's minimum size to
1592 .Ar width
1594 .Ar height .
1595 Default is the image's natural size.
1598 .Ar id Ns Cm :style
1599 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1601 sets the style.
1603 .Sx Style .
1604 .It Feedback
1605 none
1607 .Ss GtkImageMenuItem
1608 .Cm GtkImageMenuItem
1609 is deprecated.
1610 .Bl -tag -width "commands "
1611 .It Commands
1612 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1613 makes the item grayed out
1614 .Pq Cm 0
1615 or responsive
1616 .Pq Cm 1 .
1618 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1619 hides
1620 .Pq Cm 0
1621 the item, or makes it visible
1622 .Pq Cm 1 .
1624 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1625 blocks
1626 .Pq Cm 1
1627 or unblocks
1628 .Pq Cm 0
1629 feedback messages.
1630 Initially, the item is unblocked.
1632 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1633 sets the item's tooltip.
1634 Default is disabling the tooltip.
1636 .Qq Ar id Ns Cm :force
1637 simulates a click on the menu item.
1639 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1640 sets the item's minimum size to
1641 .Ar width
1643 .Ar height .
1644 Default is the item's natural size.
1647 .Ar id Ns Cm :style
1648 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1650 sets the item's style.
1652 .Sx Style .
1653 .It Feedback
1655 .Cm GtkImageMenuItem
1656 with id
1657 .Ar foo Ns Cm _invoke
1658 will invoke the
1659 .Sx GtkDialog
1661 .Sx GtkFileChooserDialog
1662 with id
1663 .Ar foo
1664 if it exists.
1665 If there isn't any dialog attached to the
1666 .Cm GtkImageMenuItem ,
1667 it reports
1668 .Qq Ar id Ns Cm \&:active Ar label .
1670 .Ss GtkInfoBar
1671 .Bl -tag -width "commands "
1672 .It Commands
1673 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1674 makes the info bar grayed out
1675 .Pq Cm 0
1676 or responsive
1677 .Pq Cm 1 .
1679 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1680 hides
1681 .Pq Cm 0
1682 the info bar, or makes it visible
1683 .Pq Cm 1 .
1685 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1686 sets the info bar's tooltip.
1687 Default is disabling the tooltip.
1689 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1690 sets the info bar's minimum size to
1691 .Ar width
1693 .Ar height .
1694 Default is the info bar's natural size.
1697 .Ar id Ns Cm :style
1698 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1700 sets the style.
1702 .Sx Style .
1703 .It Feedback
1704 none
1706 .Ss GtkLabel
1707 .Bl -tag -width "commands "
1708 .It Commands
1709 .Qq Ar id Ns Cm :set_text Ar string
1710 replaces the label text with
1711 .Ar string .
1713 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1714 makes the label grayed out
1715 .Pq Cm 0
1716 or clearly visible
1717 .Pq Cm 1 .
1719 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1720 hides
1721 .Pq Cm 0
1722 the label, or makes it visible
1723 .Pq Cm 1 .
1725 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1726 sets the label's tooltip.
1727 Default is disabling the tooltip.
1729 .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
1730 writes a snapshot of the label to an image file of the specified
1731 type.
1733 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1734 sets the label's minimum size to
1735 .Ar width
1737 .Ar height .
1738 Default is the natural size.
1741 .Ar id Ns Cm :style
1742 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1744 sets the label's style.
1746 .Sx Style .
1747 .It Feedback
1748 none
1750 .Ss GtkMenuItem
1751 .Bl -tag -width "commands "
1752 .It Commands
1753 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1754 makes the item grayed out
1755 .Pq Cm 0
1756 or responsive
1757 .Pq Cm 1 .
1759 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1760 hides
1761 .Pq Cm 0
1762 the item, or makes it visible
1763 .Pq Cm 1 .
1765 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1766 blocks
1767 .Pq Cm 1
1768 or unblocks
1769 .Pq Cm 0
1770 feedback messages.
1771 Initially, the item is unblocked.
1773 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1774 sets the item's tooltip.
1775 Default is disabling the tooltip.
1777 .Qq Ar id Ns Cm :force
1778 simulates a click on the menu item.
1780 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1781 sets the item's minimum size to
1782 .Ar width
1784 .Ar height .
1785 Default is the item's natural size.
1788 .Ar id Ns Cm :style
1789 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1791 sets the item's style.
1793 .Sx Style .
1794 .It Feedback
1796 .Cm GtkMenuItem
1797 with id
1798 .Ar foo Ns Cm _invoke
1799 will invoke the
1800 .Sx GtkDialog
1802 .Sx GtkFileChooserDialog
1803 with id
1804 .Ar foo
1805 if it exists.
1806 If there isn't any dialog attached to the
1807 .Cm GtkMenuItem ,
1808 it reports
1809 .Qq Ar id Ns Cm \&:active Ar label .
1811 .Ss GtkNotebook
1812 .Bl -tag -width "commands "
1813 .It Commands
1814 .Qq Ar id Ns Cm :set_current_page Ar n
1815 switches to zero-based page number
1816 .Ar n .
1818 .Qq Ar id Ns Cm :grab_focus
1819 puts the keyboard focus onto the notebook.
1821 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1822 makes the notebook grayed out
1823 .Pq Cm 0
1824 or responsive
1825 .Pq Cm 1 .
1827 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1828 hides
1829 .Pq Cm 0
1830 the notebook, or makes it visible
1831 .Pq Cm 1 .
1833 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1834 sets the notebook's tooltip.
1835 Default is disabling the tooltip.
1837 .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
1838 writes a snapshot of the notebook to an image file of the specified
1839 type.
1841 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1842 sets the notebooks's minimum size to
1843 .Ar width
1845 .Ar height .
1846 Default is the widget's natural size.
1849 .Ar id Ns Cm :style
1850 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1852 sets the notebook's style.
1854 .Sx Style .
1855 .It Feedback
1856 none
1858 .Ss GtkOverlay
1859 .Bl -tag -width "commands "
1860 .It Commands
1861 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1862 makes the overlay grayed out
1863 .Pq Cm 0
1864 or responsive
1865 .Pq Cm 1 .
1867 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1868 hides
1869 .Pq Cm 0
1870 the overlay, or makes it visible
1871 .Pq Cm 1 .
1873 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1874 sets the overlay's tooltip.
1875 Default is disabling the tooltip.
1877 .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
1878 writes a snapshot of the overlay to an image file of the specified
1879 type.
1881 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1882 sets the overlay's minimum size to
1883 .Ar width
1885 .Ar height .
1886 Default is the overlay's natural size.
1889 .Ar id Ns Cm :style
1890 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1892 sets the style.
1894 .Sx Style .
1895 .It Feedback
1896 none
1898 .Ss GtkPlug
1899 The main window can be turned into a
1900 .Cm GtkPlug
1901 and embedded into the XEmbed socket of another process; see
1902 .Sx OPTIONS ,
1903 option
1904 .Fl e .
1905 .Ss GtkPrintUnixDialog
1906 .Bl -tag -width "commands "
1907 .It Commands
1908 .Qq Ar id Ns Cm :print Ar file.ps
1909 opens the print dialog.
1910 Pressing the
1911 .Ql Print
1912 button sends
1913 .Ar file.ps
1914 to the printer the user selected in the dialog.
1916 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1917 makes the dialog grayed out
1918 .Pq Cm 0
1919 or responsive
1920 .Pq Cm 1 .
1922 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1923 hides
1924 .Pq Cm 0
1925 the dialog, or makes it visible
1926 .Pq Cm 1 .
1928 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1929 blocks
1930 .Pq Cm 1
1931 or unblocks
1932 .Pq Cm 0
1933 feedback messages.
1934 Initially, the dialog is unblocked.
1936 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1937 sets the dialog's tooltip.
1938 Default is disabling the tooltip.
1940 .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
1941 writes a snapshot of the dialog to an image file of the specified
1942 type.
1944 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1945 sets the dialog's minimum size to
1946 .Ar width
1948 .Ar height .
1949 Default is the dialog's natural size.
1952 .Ar id Ns Cm :style
1953 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1955 sets the widget style.
1957 .Sx Style .
1958 .It Feedback
1959 .Qq Ar id Ns Cm \&:closed
1960 if the
1961 .Cm GtkPrintUnixDialog
1962 window was closed by the window manager.
1964 .Ss GtkProgressBar
1965 .Bl -tag -width "commands "
1966 .It Commands
1967 .Qq Ar id Ns Cm :set_fraction Ar x
1968 moves the progress bar to
1969 .Ar x
1970 .Pq between 0 and 1 .
1972 .Qq Ar id Ns Cm :set_text Bq Ar string
1973 replaces the text of the progress bar with
1974 .Ar string .
1975 Default is the progress percentage.
1977 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1978 hides
1979 .Pq Cm 0
1980 the progress bar, or makes it visible
1981 .Pq Cm 1 .
1983 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1984 sets the tooltip of the progressbar.
1985 Default is disabling the tooltip.
1987 .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
1988 writes a snapshot of the progress bar to an image file of the
1989 specified type.
1991 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1992 sets the minimum size of the progress bar to
1993 .Ar width
1995 .Ar height .
1996 Default is the natural size.
1999 .Ar id Ns Cm :style
2000 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2002 sets the style.
2004 .Sx Style .
2005 .It Feedback
2006 none
2008 .Ss GtkRadioButton
2009 .Bl -tag -width "commands "
2010 .It Commands
2011 .Qq Ar id Ns Cm :set_active 1
2012 switches the button on.
2013 All other buttons of the same group will go off automatically.
2015 .Qq Ar id Ns Cm :set_label Ar string
2016 replaces the button text with
2017 .Ar string .
2019 .Qq Ar id Ns Cm :grab_focus
2020 puts the keyboard focus onto the button.
2022 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2023 makes the button grayed out
2024 .Pq Cm 0
2025 or responsive
2026 .Pq Cm 1 .
2028 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2029 hides
2030 .Pq Cm 0
2031 the button, or makes it visible
2032 .Pq Cm 1 .
2034 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2035 blocks
2036 .Pq Cm 1
2037 or unblocks
2038 .Pq Cm 0
2039 feedback messages.
2040 Initially, the button is unblocked.
2042 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2043 sets the button's tooltip.
2044 Default is disabling the tooltip.
2046 .Qq Ar id Ns Cm :force
2047 simulates a click on the button.
2049 .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
2050 writes a snapshot of the button to an image file of the specified
2051 type.
2053 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2054 sets the button's minimum size to
2055 .Ar width
2057 .Ar height .
2058 Default is the button's natural size.
2061 .Ar id Ns Cm :style
2062 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2064 sets the style.
2066 .Sx Style .
2067 .It Feedback
2068 .Qq Ar id Ns Cm \&:1
2069 if switched on, or
2070 .Qq Ar id Ns Cm \&:0
2071 otherwise.
2073 .Ss GtkScale
2074 .Bl -tag -width "commands "
2075 .It Commands
2076 .Qq Ar id Ns Cm :set_value Ar x
2077 moves the slider to value
2078 .Ar x .
2080 .Qq Ar id Ns Cm :set_fill_level Bq Ar x
2081 moves the fill level indicator to value
2082 .Ar x .
2083 Default is hiding the fill level indicator.
2085 .Qq Ar id Ns Cm :set_range Ar min max
2086 changes the range.
2088 .Qq Ar id Ns Cm :set_increments Ar step page
2089 sets the steps the slider moves while pressing arrow keys and
2090 .Ql Page_Up Ns
2091 .Pf / Ql Page_Down ,
2092 respectively.
2094 .Qq Ar id Ns Cm :grab_focus
2095 puts the keyboard focus onto the scale.
2097 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2098 makes the scale grayed out
2099 .Pq Cm 0
2100 or responsive
2101 .Pq Cm 1 .
2103 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2104 hides
2105 .Pq Cm 0
2106 the scale, or makes it visible
2107 .Pq Cm 1 .
2109 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2110 blocks
2111 .Pq Cm 1
2112 or unblocks
2113 .Pq Cm 0
2114 feedback messages.
2115 Initially, the scale is unblocked.
2117 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2118 sets the scale's tooltip.
2119 Default is disabling the tooltip.
2121 .Qq Ar id Ns Cm :force
2122 simulates fresh selection of the current value.
2124 .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
2125 writes a snapshot of the scale to an image file of the specified
2126 type.
2128 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2129 sets the scale's minimum size to
2130 .Ar width
2132 .Ar height .
2133 Default is the natural size.
2136 .Ar id Ns Cm :style
2137 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2139 sets the style.
2141 .Sx Style .
2142 .It Feedback
2143 .Qq Ar id Ns Cm \&:value Ar number
2145 .Ss GtkScrolledWindow
2146 .Bl -tag -width "commands "
2147 .It Commands
2148 .Qq Ar id Ns Cm :hscroll Ar position
2150 .Qq Ar id Ns Cm :vscroll Ar position
2151 scroll
2152 .Ar position
2153 to the left or top edge of the
2154 .Cm GtkScrolledWindow ,
2155 respectively.
2157 .Qq Ar id Ns Cm :hscroll_to_range Ar pos0 pos1
2159 .Qq Ar id Ns Cm :vscroll_to_range Ar pos0 pos1
2160 scroll, if necessary, the range between
2161 .Ar pos0
2163 .Ar pos1
2164 into the
2165 .Cm GtkScrolledWindow .
2166 If the range is greater than the window, the initial part of the range
2167 will be visible.
2169 .Qq Ar id Ns Cm :grab_focus
2170 puts the keyboard focus onto the widget.
2172 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2173 makes the widget grayed out
2174 .Pq Cm 0
2175 or responsive
2176 .Pq Cm 1 .
2178 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2179 hides
2180 .Pq Cm 0
2181 the widget, or makes it visible
2182 .Pq Cm 1 .
2184 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2185 sets the widget's tooltip.
2186 Default is disabling the tooltip.
2188 .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
2189 writes a snapshot of the widget to an image file of the specified
2190 type.
2192 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2193 sets the minimum size to
2194 .Ar width
2196 .Ar height .
2197 Default is the widget's natural size.
2200 .Ar id Ns Cm :style
2201 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2203 sets the style.
2205 .Sx Style .
2206 .It Feedback
2207 none
2209 .Ss GtkSeparator
2210 .Bl -tag -width "commands "
2211 .It Commands
2212 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2213 makes the separator insensitive
2214 .Pq Cm 0
2215 or responsive
2216 .Pq Cm 1 .
2218 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2219 sets the tooltip of the separator.
2220 Default is disabling the tooltip.
2222 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2223 hides
2224 .Pq Cm 0
2225 the separator, or makes it visible
2226 .Pq Cm 1 .
2228 .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
2229 writes a snapshot of the separator to an image file of the specified
2230 type.
2232 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2233 sets the minimum size to
2234 .Ar width
2236 .Ar height .
2237 Default is the natural size of the separator.
2240 .Ar id Ns Cm :style
2241 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2243 sets the widget style.
2245 .Sx Style .
2246 .It Feedback
2247 none
2249 .Ss GtkSeparatorMenuItem
2250 .Bl -tag -width "commands "
2251 .It Commands
2252 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2253 makes the menu item insensitive
2254 .Pq Cm 0
2255 or responsive
2256 .Pq Cm 1 .
2258 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2259 hides
2260 .Pq Cm 0
2261 the menu item, or makes it visible
2262 .Pq Cm 1 .
2264 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2265 sets the tooltip of the menu item.
2266 Default is disabling the tooltip.
2268 .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
2269 writes a snapshot of the menu item to an image file of the specified
2270 type.
2272 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2273 sets the minimum size to
2274 .Ar width
2276 .Ar height .
2277 Default is the natural size of the menu item.
2280 .Ar id Ns Cm :style
2281 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2283 sets the widget style.
2285 .Sx Style .
2286 .It Feedback
2287 none
2289 .Ss GtkSocket
2290 .Cm GtkSocket
2291 may be unsupported by Glade, but its definition can be inserted
2292 manually into the GtkBuilder
2293 .Pq Pa .ui
2294 file:
2295 .Bd -literal -offset indent
2296 <child>
2297   <object class="GtkSocket" id="socket1">
2298     <property name="visible">True</property>
2299     <property name="can_focus">True</property>
2300   </object>
2301   <packing>
2302     <property name="expand">True</property>
2303     <property name="fill">True</property>
2304     <property name="position">1</property>
2305   </packing>
2306 </child>
2308 .Bl -tag -width "commands "
2309 .It Commands
2310 .Qq Ar id Ns Cm :id
2311 requests a feedback message containing the socket
2312 .Ar xid .
2314 .Qq Ar id Ns Cm :grab_focus
2315 puts the keyboard focus onto the socket.
2317 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2318 makes the socket grayed out
2319 .Pq Cm 0
2320 or responsive
2321 .Pq Cm 1 .
2323 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2324 hides
2325 .Pq Cm 0
2326 the socket, or makes it visible
2327 .Pq Cm 1 .
2329 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2330 sets the socket's tooltip.
2331 Default is disabling the tooltip.
2332 .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
2333 writes a snapshot of the socket to an image file of the specified
2334 type.
2336 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2337 sets the socket's minimum size to
2338 .Ar width
2340 .Ar height .
2341 Default is the socket's natural size.
2344 .Ar id Ns Cm :style
2345 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2347 sets the style.
2349 .Sx Style .
2350 .It Feedback
2351 .Qq Ar id Ns Cm :id Ar xid
2352 can be used by another process to XEmbed its widgets into the
2353 .Cm GtkSocket .
2355 .Qq Ar id Ns Cm \&:plug-added ,
2357 .Ar id Ns Cm \&:plug-removed
2358 .Qc .
2359 Notification that the other process has inserted its widgets into or
2360 removed them from the
2361 .Cm GtkSocket .
2363 .Ss GtkSpinButton
2364 .Bl -tag -width "commands "
2365 .It Commands
2366 .Qq Ar id Ns Cm :set_text Ar string
2367 sets the selected value to
2368 .Ar string .
2370 .Qq Ar id Ns Cm :set_range Ar min max
2371 changes the range.
2373 .Qq Ar id Ns Cm :set_increments Ar step page
2374 sets the steps the value changes while pressing arrow keys/left mouse
2375 button, and
2376 .Ql Page_Up Ns
2377 .Pf / Ql Page_Down Ns
2378 /middle mouse button,
2379 respectively.
2381 .Qq Ar id Ns Cm :grab_focus
2382 puts the keyboard focus onto the button.
2384 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2385 makes the button grayed out
2386 .Pq Cm 0
2387 or responsive
2388 .Pq Cm 1 .
2390 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2391 hides
2392 .Pq Cm 0
2393 the button, or makes it visible
2394 .Pq Cm 1 .
2396 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2397 blocks
2398 .Pq Cm 1
2399 or unblocks
2400 .Pq Cm 0
2401 feedback messages.
2402 Initially, the button is unblocked.
2404 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2405 sets the button's tooltip.
2406 Default is disabling the tooltip.
2408 .Qq Ar id Ns Cm :force
2409 simulates fresh selection of the current value
2411 .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
2412 writes a snapshot of the button to an image file of the specified
2413 type.
2415 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2416 sets the button's minimum size to
2417 .Ar width
2419 .Ar height .
2420 Default is the widget's natural size.
2423 .Ar id Ns Cm :style
2424 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2426 sets the button's style.
2428 .Sx Style .
2429 .It Feedback
2430 .Qq Ar id Ns Cm \&:text Ar text
2432 .Ss GtkSpinner
2433 .Bl -tag -width "commands "
2434 .It Commands
2435 .Qq Ar id Ns Cm :start
2437 .Qq Ar id Ns Cm :stop
2438 start and stop the spinner.
2440 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2441 makes the spinner grayed out
2442 .Pq Cm 0
2443 or clearly visible
2444 .Pq Cm 1 .
2446 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2447 hides
2448 .Pq Cm 0
2449 the spinner, or makes it visible
2450 .Pq Cm 1 .
2452 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2453 sets the spinner's tooltip.
2454 Default is disabling the tooltip.
2456 .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
2457 writes a snapshot of the spinner to an image file of the specified
2458 type.
2460 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2461 sets the spinner's minimum size to
2462 .Ar width
2464 .Ar height .
2465 Default is the natural size.
2468 .Ar id Ns Cm :style
2469 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2471 sets the style.
2473 .Sx Style .
2474 .It Feedback
2475 none
2477 .Ss GtkStatusbar
2478 The context parameter
2479 .Ar c
2480 is an arbitrary non-whitespace string.
2481 .Bl -tag -width "commands "
2482 .It Commands
2483 .Qq Ar id Ns Cm :push_id Ar c string ,
2484 .Qq Ar id Ns Cm :push Ar string
2485 associate
2486 .Ar string
2487 with context parameter
2488 .Ar c
2490 .Ql 0 ,
2491 respectively, and display it in the statusbar.
2493 .Qq Ar id Ns Cm :pop_id Ar c ,
2494 .Qq Ar id Ns Cm :pop
2495 remove the latest entry associated with context parameter
2496 .Ar c
2498 .Ql 0 ,
2499 respectively, from the statusbar.
2501 .Qq Ar id Ns Cm :remove_all_id Ar c ,
2502 .Qq Ar id Ns Cm :remove_all
2503 remove the entries associated with context parameter
2504 .Ar c
2506 .Ql 0 ,
2507 respectively, from the statusbar.
2509 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2510 makes the statusbar grayed out
2511 .Pq Cm 0
2512 or clearly visible
2513 .Pq Cm 1 .
2515 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2516 hides
2517 .Pq Cm 0
2518 the statusbar, or makes it visible
2519 .Pq Cm 1 .
2521 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2522 sets the statusbar's tooltip.
2523 Default is disabling the tooltip.
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 statusbar 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 statusbar's minimum size to
2531 .Ar width
2533 .Ar height .
2534 Default is the 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 statusbar's style.
2542 .Sx Style .
2543 .It Feedback
2544 none
2546 .Ss GtkSwitch
2547 .Bl -tag -width "commands "
2548 .It Commands
2549 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
2550 turns the switch off
2551 .Pq Cm 0
2552 or on
2553 .Pq Cm 1 .
2555 .Qq Ar id Ns Cm :grab_focus
2556 puts the keyboard focus onto the switch.
2558 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2559 makes the switch grayed out
2560 .Pq Cm 0
2561 or responsive
2562 .Pq Cm 1 .
2564 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2565 hides
2566 .Pq Cm 0
2567 the switch, or makes it visible
2568 .Pq Cm 1 .
2570 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2571 blocks
2572 .Pq Cm 1
2573 or unblocks
2574 .Pq Cm 0
2575 feedback messages.
2576 Initially, the switch is unblocked.
2578 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2579 sets the tooltip of the switch.
2580 Default is disabling the tooltip.
2582 .Qq Ar id Ns Cm :force
2583 simulates a click on the switch.
2585 .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
2586 writes a snapshot of the switch to an image file of the specified
2587 type.
2589 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2590 sets the switch's minimum size to
2591 .Ar width
2593 .Ar height .
2594 Default is the natural size.
2597 .Ar id Ns Cm :style
2598 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2600 sets the style.
2602 .Sx Style .
2603 .It Feedback
2604 .Qq Ar id Ns Cm \&:1
2605 if switched on, or
2606 .Qq Ar id Ns Cm \&:0
2607 otherwise.
2609 .Ss GtkTextView
2610 There should be a dedicated
2611 .Sx GtkButton
2612 for sending (parts of) the text.
2613 If the id of the
2614 .Cm GtkTextView
2616 .Ar foo ,
2618 .Sx GtkButton
2619 with id
2620 .Ar foo Ns Cm _send_text
2621 will send the content of the
2622 .Cm GtkTextView ;
2624 .Sx GtkButton
2625 with id
2626 .Ar foo Ns Cm _send_selection
2627 will send the highlighted part the
2628 .Cm GtkTextView .
2629 .Bl -tag -width "commands "
2630 .It Commands
2631 .Qq Ar id Ns Cm :set_text Ar string
2632 replaces the user-editable text with (potentially empty)
2633 .Ar string Ns .
2635 .Qq Ar id Ns Cm :delete
2636 deletes the text.
2638 .Qq Ar id Ns Cm :insert_at_cursor Ar string
2639 inserts
2640 .Ar string
2641 at cursor position.
2643 .Qq Ar id Ns Cm :place_cursor Brq Ar position | Cm end
2644 places the text cursor at
2645 .Ar position
2646 or at the end of the text.
2648 .Qq Ar id Ns Cm :place_cursor_at_line Ar line
2649 places the text cursor at the beginning of
2650 .Ar line .
2652 .Qq Ar id Ns Cm :scroll_to_cursor
2653 scrolls to the cursor position if necessary.
2655 .Qq Ar id Ns Cm :save Ar file
2656 stores in
2657 .Ar file
2660 command containing the text.
2662 .Qq Ar id Ns Cm :grab_focus
2663 puts the keyboard focus into the textview.
2665 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2666 makes the text view grayed out
2667 .Pq Cm 0
2668 or responsive
2669 .Pq Cm 1 .
2671 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2672 hides
2673 .Pq Cm 0
2674 the text view, or makes it visible
2675 .Pq Cm 1 .
2677 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2678 sets the tooltip of the text view.
2679 Default is disabling the tooltip.
2681 .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
2682 writes a snapshot of the text view to an image file of the specified
2683 type.
2685 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2686 sets the minimum size to
2687 .Ar width
2689 .Ar height .
2690 Default is the natural size.
2693 .Ar id Ns Cm :style
2694 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2696 sets the style.
2698 .Sx Style .
2699 .It Feedback
2700 .Qq Ar button_id Ns Cm \&:text Ar text ,
2701 .Ar button_id
2702 being the id of the
2703 .Sx GtkButton .
2704 Line endings in
2705 .Ar text
2706 are replaced by
2707 .Cm \en ,
2708 and backslashes are replaced by
2709 .Cm \e\e .
2711 .Ss GtkToggleButton
2712 .Bl -tag -width "commands "
2713 .It Commands
2714 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
2715 switches the button off
2716 .Pq Cm 0
2717 or on
2718 .Pq Cm 1 .
2720 .Qq Ar id Ns Cm :set_label Ar string
2721 replaces the button text with
2722 .Ar string .
2724 .Qq Ar id Ns Cm :grab_focus
2725 puts the keyboard focus onto the button.
2727 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2728 makes the button grayed out
2729 .Pq Cm 0
2730 or responsive
2731 .Pq Cm 1 .
2733 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2734 hides
2735 .Pq Cm 0
2736 the button, or makes it visible
2737 .Pq Cm 1 .
2739 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2740 blocks
2741 .Pq Cm 1
2742 or unblocks
2743 .Pq Cm 0
2744 feedback messages.
2745 Initially, the button is unblocked.
2747 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2748 sets the button's tooltip.
2749 Default is disabling the tooltip.
2751 .Qq Ar id Ns Cm :force
2752 simulates a click on the button.
2754 .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
2755 writes a snapshot of the button to an image file of the specified
2756 type.
2758 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2759 sets the button's minimum size to
2760 .Ar width
2762 .Ar height .
2763 Default is the button's natural size.
2766 .Ar id Ns Cm :style
2767 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2769 sets the button's style.
2771 .Sx Style .
2772 .It Feedback
2773 .Qq Ar id Ns Cm \&:1
2774 if switched on, or
2775 .Qq Ar id Ns Cm \&:0
2776 otherwise.
2778 .Ss GtkTreeView
2780 can deal with columns of type
2781 .Cm gboolean , gint , guint , glong , gulong , gint64 , guint64 , gfloat , gdouble ,
2783 .Cm gchararray .
2785 .Ar row
2787 .Ar column
2788 refer to the underlying model
2789 .Cm ( GtkListStore
2791 .Cm GtkTreeStore ) .
2792 .Ar row
2793 is a sequence of one or more colon-separated integers, e.g.
2794 .Ql 3
2796 .Ql 0:0:1 .
2797 .Bl -tag -width "commands "
2798 .It Commands
2799 .Qq Ar id Ns Cm :set Ar row column data
2800 replaces the content at
2801 .Pq Ar row , column
2802 with
2803 .Ar data
2804 (which should be compatible with the type of
2805 .Ar column ) .
2806 If necessary, new tree nodes are created to obtain the minimal tree
2807 structure needed to support
2808 .Ar row .
2810 .Qq Ar id Ns Cm :insert_row Brq Ar row Bo Cm as_child Bc | Cm end
2811 inserts a new, empty row; either as a sibling of
2812 .Ar row
2813 at position
2814 .Ar row ,
2815 or as a child of
2816 .Ar row ,
2817 or at the end of the list, respectively.
2819 .Qq Ar id Ns Cm :move_row Ar origin Brq Ar destination | Cm end
2820 moves the row at
2821 .Ar origin
2822 within its current level to
2823 .Ar destination
2824 or to the end.
2826 .Qq Ar id Ns Cm :remove_row Ar row
2827 removes the row at position
2828 .Ar row .
2830 .Qq Ar id Ns Cm :clear
2831 removes all rows.
2833 .Qq Ar id Ns Cm :expand Ar row
2834 expands one level of the subtree below
2835 .Ar row .
2837 .Qq Ar id Ns Cm :expand_all Bq Ar row
2838 expands the subtree below
2839 .Ar row ,
2840 or the whole tree.
2842 .Qq Ar id Ns Cm :collapse Bq Ar row
2843 collapses the subtree below
2844 .Ar row ,
2845 or the whole tree.
2847 .Qq Ar id Ns Cm :set_cursor Bq Ar row
2848 sets the cursor to
2849 .Ar row ,
2850 or unsets it.
2852 .Qq Ar id Ns Cm :scroll Ar row column
2853 scrolls the cell at
2854 .Pq Ar row , column
2855 into view.
2857 .Qq Ar id Ns Cm :save Ar file
2858 stores the content of the underlying model as a sequence of
2860 commands into
2861 .Ar file .
2863 .Qq Ar id Ns Cm :grab_focus
2864 puts the keyboard focus onto the tree view.
2866 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2867 makes the tree view grayed out
2868 .Pq Cm 0
2869 or responsive
2870 .Pq Cm 1 .
2872 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2873 hides
2874 .Pq Cm 0
2875 the tree view, or makes it visible
2876 .Pq Cm 1 .
2878 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2880 with
2881 .Ar id
2882 from the underlying
2883 .Cm GtkTreeSelection
2885 blocks
2886 .Pq Cm 1
2887 or unblocks
2888 .Pq Cm 0
2889 feedback messages.
2890 Initially, the widget is unblocked.
2892 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2893 sets the tooltip of the tree view.
2894 Default is disabling the tooltip.
2896 .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
2897 writes a snapshot of the tree view to an image file of the specified
2898 type.
2900 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2901 sets the minimum size of the tree view to
2902 .Ar width
2904 .Ar height .
2905 Default is the widget's natural size.
2908 .Ar id Ns Cm :style
2909 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2911 sets the style.
2913 .Sx Style .
2914 .It Feedback
2915 .Qq Ar id Ns Cm \&:clicked
2917 .Qq Ar id Ns Cm \&: Ns Ar column_type row column value ,
2918 one message per cell in the underlying model for each selected row; or
2920 .Qq Ar id Ns Cm \&: Ns Ar column_type row column new_value ,
2921 if the cell at
2922 .Pq Ar row , column
2923 has been edited.
2925 .Ss GtkTreeViewColumn
2926 .Bl -tag -width "commands "
2927 .It Commands
2928 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2929 blocks
2930 .Pq Cm 1
2931 or unblocks
2932 .Pq Cm 0
2933 feedback messages.
2934 Initially, the widget is unblocked.
2935 .It Feedback
2936 .Qq Ar id Ns Cm \&:clicked
2938 .Ss GtkViewport
2939 .Bl -tag -width "commands "
2940 .It Commands
2941 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2942 makes the viewport insensitive
2943 .Pq Cm 0
2944 or responsive
2945 .Pq Cm 1 .
2947 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2948 hides
2949 .Pq Cm 0
2950 the viewport, or makes it visible
2951 .Pq Cm 1 .
2953 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2954 sets the tooltip of the viewport.
2955 Default is disabling the tooltip.
2957 .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
2958 writes a snapshot of the viewport to an image file of the specified
2959 type.
2961 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2962 sets the minimum size to
2963 .Ar width
2965 .Ar height .
2966 Default is the natural size of the viewport.
2969 .Ar id Ns Cm :style
2970 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2972 sets the widget style.
2974 .Sx Style .
2975 .It Feedback
2976 none
2978 .Ss GtkWindow
2979 .Bl -tag -width "commands "
2980 .It Commands
2981 .Qq Ar id Ns Cm :set_title Ar string
2982 replaces the text in the title bar with
2983 .Ar string .
2985 .Qq Ar id Ns Cm :resize Bq Ar width height
2986 changes the window size to
2987 .Ar width
2989 .Ar height
2990 pixels if specified, or to the default size.
2992 .Qq Ar id Ns Cm :move Ar x y
2993 moves the window to position
2994 .Pq Ar x , y .
2996 .Qq Ar id Ns Cm :fullscreen
2998 .Qq Ar id Ns Cm :unfullscreen
2999 switch fullscreen mode on and off.
3001 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3002 makes the widget grayed out
3003 .Pq Cm 0
3004 or responsive
3005 .Pq Cm 1 .
3007 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3008 hides
3009 .Pq Cm 0
3010 the widget, or makes it visible
3011 .Pq Cm 1 .
3013 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3014 blocks
3015 .Pq Cm 1
3016 or unblocks
3017 .Pq Cm 0
3018 feedback messages.
3019 Initially, the widget is unblocked.
3021 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3022 sets the window's tooltip.
3023 Default is disabling the tooltip.
3024 .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
3025 writes a snapshot of the window to an image file of the specified
3026 type.
3028 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3029 sets the window's minimum size to
3030 .Ar width
3032 .Ar height .
3033 Default is the widget's natural size.
3036 .Ar id Ns Cm :style
3037 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3039 sets the style.
3041 .Sx Style .
3042 .It Feedback
3043 .Qq Ar id Ns Cm \&:closed
3044 if the
3045 .Cm GtkWindow
3046 was closed by the window manager.
3048 .Sh SPECIAL SYNTAX
3049 .Ss Style
3051 .Ar id Ns Cm :style
3052 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3054 sets properties
3055 .Ar prop
3056 of the widget style to
3057 .Ar val .
3058 Properties not explicitly specified are reset to their default values.
3059 Examples:
3060 .Bl -dash -offset indent -compact
3062 .Ql label1:style font:Bold 11; background-color:green
3064 .Ql label1:style font-style:italic; font-weight:bold; color:blue
3066 .Ql button1:style background-image:url("q.png")
3068 .Ql treeview1:style background-image:linear-gradient(45deg, yellow, blue);
3070 .Ql frame1:style border-color:red yellow; border-width:5px
3072 .Ql frame1:style border-radius:10px; transition:10s
3074 For color notations see
3075 .Sx Color ,
3076 below.
3077 .Ss Color
3078 Possible
3079 .Ar color
3080 notations:
3081 .Bl -dash -offset indent -compact
3083 standard X11 colors names like
3084 .Ql blue ,
3085 .Ql Dark Sea Green ,
3087 .Ql Red ;
3089 .Ql transparent ;
3091 hexadecimal values in the form
3092 .Cm # Ns Ar rgb , Cm # Ns Ar rrggbb , Cm # Ns Ar rrrgggbbb ,
3094 .Cm # Ns Ar rrrrggggbbbb ;
3096 RGB colors in the form
3097 .Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
3099 RGBA colors in the form
3100 .Cm rgba( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns
3101 .Ar blue Ns Cm \&, Ns Ar alpha Ns Cm \&) ;
3102 .Ar red , green , blue
3103 between 0 and 255 and
3104 .Ar alpha
3105 between 0 and 1;
3107 color expressions like
3108 .Ql darker(blue)
3110 .Ql lighter(currentColor) .
3112 .Sh EXIT STATUS
3113 .Ex -std
3114 .Sh EXAMPLES
3115 .Ss Discovering Pipeglade Interactively
3116 Suppose the interface in
3117 .Pa ./pipeglade.ui
3118 has a
3119 .Sx GtkLabel Ql label1
3120 and a
3121 .Sx GtkButton Ql button1 .
3122 After invoking
3124 .Dl pipeglade
3126 and clicking the
3127 .Sx GtkButton , Ql button1:clicked
3128 will be reported on the terminal.
3129 Typing
3131 .Dl label1:set_text The Button
3133 will change the text shown on the label into
3134 .Ql The Button .
3135 .Ss One-Shot File Dialog
3136 Suppose the interface in
3137 .Pa ./simple_open.ui
3138 contains a
3139 .Sx GtkFileChooserDialog
3140 with an
3141 .Sq OK
3142 .Sx GtkButton
3143 whose id is
3144 .Ql main_ok .
3145 Invoking
3147 .Dl pipeglade -u simple_open.ui
3149 will open the dialog; pressing
3150 .Sq OK
3151 will close it after sending the selected filename to
3152 .Va stdout .
3153 .Ss One-Shot User Notification
3154 If the interface in
3155 .Pa ./simple_dialog.ui
3156 contains a
3157 .Sx GtkLabel Ql label1 ,
3158 then
3159 .Bd -literal -offset indent
3160 pipeglade -u simple_dialog.ui <<< \e
3161     "label1:set_text NOW READ THIS!"
3163 will set the label text accordingly and wait for user input.
3164 .Ss Continuous Input
3165 The following shell command displays a running clock:
3166 .Bd -literal -offset indent
3167 while true; do
3168     echo "label1:set_text `date`";
3169     sleep 1;
3170 done | pipeglade -u simple_dialog.ui
3172 .Ss Continuous Input and Output
3173 The following shell script fragment sets up
3175 for continuous communication with another program,
3176 .Pa main_prog :
3177 .Bd -literal -offset indent
3178 pipeglade -i in.fifo -o out.fifo -b
3179 main_prog <out.fifo >in.fifo
3181 .Sh SEE ALSO
3182 .Xr dialog 1 ,
3183 .Xr glade 1 ,
3184 .Xr gxmessage 1 ,
3185 .Xr kdialog 1 ,
3186 .Xr whiptail 1 ,
3187 .Xr xmessage 1 ,
3188 .Xr zenity 1
3189 .Sh AUTHOR
3191 was written by
3192 .An Bert Burgemeister
3193 .Aq Mt trebbu@googlemail.com .
3194 .Sh BUGS
3195 Due to what appears to be a bug in cairo v1.14.0,
3197 used with this library version occasionally crashes on
3198 .Cm GtkDrawingArea
3199 commands.