Improve and document previously undocumented ping command
[pipeglade.git] / pipeglade.1
blobd9800071a45a0d0750464e3c66a1373c4b4b7947
1 .\" Copyright (c) 2014-2017 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 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 "commands "
285 .It Commands
287 .Qq Ar id Ns Cm :load Ar file
288 reads arbitrary
290 commands from
291 .Ar file .
292 A non-empty
293 .Ar id
294 is required but ignored.
295 .Cm :load
296 commands may be nested but on attempts to read from the same file, the
297 inner
298 .Cm :load
299 is ignored.
300 There is also a
301 .Cm :save
302 command; see
303 .Sx GtkTextView
305 .Sx GtkTreeView .
307 .Qq Ar id Ns Cm :main_quit
308 kills the user interface.
309 A non-empty
310 .Ar id
311 is required but ignored.
313 .Ss GtkAspectFrame
314 .Bl -tag -width "commands "
315 .It Commands
316 .Qq Ar id Ns Cm :set_label Ar text
317 replaces the frame label text with
318 .Ar string .
320 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
321 makes the frame and its content grayed out
322 .Pq Cm 0
323 or responsive
324 .Pq Cm 1 .
326 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
327 hides
328 .Pq Cm 0
329 the frame, or makes it visible
330 .Pq Cm 1 .
332 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
333 sets the frame's tooltip.
334 Default is disabling the tooltip.
336 .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
337 writes a snapshot of the frame to an image file of the specified
338 type.
340 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
341 sets the widget's minimum size to
342 .Ar width
344 .Ar height .
345 Default is the frame's natural size.
348 .Ar id Ns Cm :style
349 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
351 sets the style.
353 .Sx Style .
355 .Qq Ar id Ns Cm :ping Bq Ar text
356 triggers a feedback message.
357 .It Feedback
358 .Qq Ar id Ns Cm :ping Ar text
359 if triggered by the
360 .Cm :ping
361 command.
363 .Ss GtkBox
364 .Bl -tag -width "commands "
365 .It Commands
366 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
367 makes the box grayed out
368 .Pq Cm 0
369 or responsive
370 .Pq Cm 1 .
372 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
373 hides
374 .Pq Cm 0
375 the box, or makes it visible
376 .Pq Cm 1 .
377 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
378 sets the box's tooltip.
379 Default is disabling the tooltip.
381 .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
382 writes a snapshot of the box to an image file of the specified
383 type.
385 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
386 sets the box's minimum size to
387 .Ar width
389 .Ar height .
390 Default is the box's natural size.
393 .Ar id Ns Cm :style
394 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
396 sets the style.
398 .Sx Style .
400 .Qq Ar id Ns Cm :ping Bq Ar text
401 triggers a feedback message.
402 .It Feedback
403 .Qq Ar id Ns Cm :ping Ar text
404 if triggered by the
405 .Cm :ping
406 command.
408 .Ss GtkButton
409 .Bl -tag -width "commands "
410 .It Commands
411 .Qq Ar id Ns Cm :set_label Ar string
412 replaces the button text with
413 .Ar string .
415 .Qq Ar id Ns Cm :grab_focus
416 puts the keyboard focus onto the button.
418 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
419 makes the button grayed out
420 .Pq Cm 0
421 or responsive
422 .Pq Cm 1 .
424 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
425 hides
426 .Pq Cm 0
427 the button, or makes it visible
428 .Pq Cm 1 .
430 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
431 blocks
432 .Pq Cm 1
433 or unblocks
434 .Pq Cm 0
435 feedback messages.
436 Initially, the button is unblocked.
438 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
439 sets the button's tooltip.
440 Default is disabling the tooltip.
442 .Qq Ar id Ns Cm :force
443 simulates a click on the button.
445 .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
446 writes a snapshot of the button to an image file of the specified
447 type.
449 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
450 sets the button's minimum size to
451 .Ar width
453 .Ar height .
454 Default is the button's natural size.
457 .Ar id Ns Cm :style
458 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
460 sets the style.
462 .Sx Style .
464 .Qq Ar id Ns Cm :ping Bq Ar text
465 triggers a feedback message.
466 .It Feedback
467 .Qq Ar id Ns Cm \&:clicked
469 .Cm GtkButton Ns
470 s with ids ending in
471 .Cm _ok , _apply , _cancel , _send_text ,
473 .Cm _send_selection
474 may work differently; see
475 .Sx GtkDialog , GtkFileChooserDialog ,
477 .Sx GtkTextView
478 for details.
480 .Qq Ar id Ns Cm :ping Ar text
481 if triggered by the
482 .Cm :ping
483 command.
485 .Ss GtkButtonBox
486 .Bl -tag -width "commands "
487 .It Commands
488 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
489 makes the box grayed out
490 .Pq Cm 0
491 or responsive
492 .Pq Cm 1 .
494 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
495 hides
496 .Pq Cm 0
497 the box, or makes it visible
498 .Pq Cm 1 .
500 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
501 sets the box's tooltip.
502 Default is disabling the tooltip.
504 .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
505 writes a snapshot of the box to an image file of the specified
506 type.
508 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
509 sets the box's minimum size to
510 .Ar width
512 .Ar height .
513 Default is the box's natural size.
516 .Ar id Ns Cm :style
517 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
519 sets the style.
521 .Sx Style .
523 .Qq Ar id Ns Cm :ping Bq Ar text
524 triggers a feedback message.
525 .It Feedback
526 .Qq Ar id Ns Cm :ping Ar text
527 if triggered by the
528 .Cm :ping
529 command.
531 .Ss GtkCalendar
532 .Bl -tag -width "commands "
533 .It Commands
534 .Qq Ar id Ns Cm :select_date Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
535 selects the date on the calendar.
537 .Qq Ar id Ns Cm :mark_day Ar day
538 marks
539 .Ar day Pq 1-31
540 on the calendar.
542 .Qq Ar id Ns Cm :clear_marks
543 unmarks all days on the calendar.
545 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
546 makes the calendar grayed out
547 .Pq Cm 0
548 or responsive
549 .Pq Cm 1 .
551 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
552 hides
553 .Pq Cm 0
554 the calendar, or makes it visible
555 .Pq Cm 1 .
557 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
558 blocks
559 .Pq Cm 1
560 or unblocks
561 .Pq Cm 0
562 feedback messages.
563 Initially, the calendar is unblocked.
565 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
566 sets the calendar's tooltip.
567 Default is disabling the tooltip.
569 .Qq Ar id Ns Cm :force
570 simulates a click on the currently selected date.
572 .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
573 writes a snapshot of the calendar to an image file of the specified
574 type.
576 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
577 sets the calendar's minimum size to
578 .Ar width
580 .Ar height .
581 Default is the widget's natural size.
584 .Ar id Ns Cm :style
585 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
587 sets the calendar's style.
589 .Sx Style .
591 .Qq Ar id Ns Cm :ping Bq Ar text
592 triggers a feedback message.
593 .It Feedback
594 .Qq Ar id Ns Cm \&:clicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
596 .Qq Ar id Ns Cm \&:doubleclicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
598 .Qq Ar id Ns Cm :ping Ar text
599 if triggered by the
600 .Cm :ping
601 command.
603 .Ss GtkCheckButton
604 .Bl -tag -width "commands "
605 .It Commands
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 .Qq Ar id Ns Cm :ping Bq Ar text
666 triggers a feedback message.
667 .It Feedback
668 .Qq Ar id Ns Cm \&:1
669 if switched on, or
670 .Qq Ar id Ns Cm \&:0
671 otherwise.
673 .Qq Ar id Ns Cm :ping Ar text
674 if triggered by the
675 .Cm :ping
676 command.
678 .Ss GtkColorButton
679 .Bl -tag -width "commands "
680 .It Commands
681 .Qq Ar id Ns Cm :set_color Ar color
682 preselects the color; see
683 .Sx Color .
685 .Qq Ar id Ns Cm :grab_focus
686 puts the keyboard focus onto the button.
688 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
689 makes the button grayed out
690 .Pq Cm 0
691 or responsive
692 .Pq Cm 1 .
694 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
695 hides
696 .Pq Cm 0
697 the button, or makes it visible
698 .Pq Cm 1 .
700 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
701 blocks
702 .Pq Cm 1
703 or unblocks
704 .Pq Cm 0
705 feedback messages.
706 Initially, the button is unblocked.
708 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
709 sets the button's tooltip.
710 Default is disabling the tooltip.
712 .Qq Ar id Ns Cm :force
713 opens the dialog window.
715 .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
716 writes a snapshot of the button to an image file of the specified
717 type.
719 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
720 sets the button's minimum size to
721 .Ar width
723 .Ar height .
724 Default is the widget's natural size.
727 .Ar id Ns Cm :style
728 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
730 sets the button's style.
732 .Sx Style .
734 .Qq Ar id Ns Cm :ping Bq Ar text
735 triggers a feedback message.
736 .It Feedback
737 .Qq Ar id Ns Cm \&:color Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
739 .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 \&) .
740 .Ar red , green ,
742 .Ar blue
743 lie between 0 and 255, and
744 .Ar alpha
745 between 0 and 1.
747 .Qq Ar id Ns Cm :ping Ar text
748 if triggered by the
749 .Cm :ping
750 command.
752 .Ss GtkComboBoxText
754 .Cm GtkComboBoxText
755 should contain a
756 .Cm GtkEntry .
757 .Bl -tag -width "commands "
758 .It Commands
759 .Qq Ar id Ns Cm :prepend_text Ar string
761 .Qq Ar id Ns Cm :append_text Ar string
762 prepend/append a new selectable item marked
763 .Ar string .
765 .Qq Ar id Ns Cm :insert_text Ar position string
766 inserts item
767 .Ar string
769 .Ar position .
771 .Qq Ar id Ns Cm :remove Ar position
772 removes the item at
773 .Ar position .
775 .Qq Ar id Ns Cm :grab_focus
776 puts the keyboard focus onto the combo box.
778 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
779 makes the combo box grayed out
780 .Pq Cm 0
781 or responsive
782 .Pq Cm 1 .
784 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
785 hides
786 .Pq Cm 0
787 the combo box, or makes it visible
788 .Pq Cm 1 .
790 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
791 blocks
792 .Pq Cm 1
793 or unblocks
794 .Pq Cm 0
795 feedback messages.
796 Initially, the combo box is unblocked.
798 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
799 sets the tooltip.
800 Default is disabling the tooltip.
802 .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
803 writes a snapshot of the combo box to an image file of the specified
804 type.
806 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
807 sets the combo box's minimum size to
808 .Ar width
810 .Ar height .
811 Default is the natural size.
814 .Ar id Ns Cm :style
815 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
817 sets the style.
819 .Sx Style .
821 .Qq Ar id Ns Cm :ping Bq Ar text
822 triggers a feedback message.
823 .It Feedback
824 .Qq Ar entry_id Ns Cm \&:text Ar text ,
825 .Ar entry_id
826 being the id of the child
827 .Cm GtkEntry .
829 .Qq Ar id Ns Cm :ping Ar text
830 if triggered by the
831 .Cm :ping
832 command.
834 .Ss GtkDialog
836 .Cm GtkDialog
837 with id
838 .Ar foo
839 will be invoked by a
840 .Sx GtkMenuItem
841 or a
842 .Sx GtkImageMenuItem
843 with id
844 .Ar foo Ns Cm _invoke .
847 .Cm GtkDialog
848 should have a
849 .Sq Cancel
850 .Sx GtkButton
851 with id
852 .Ar foo Ns Cm _cancel
853 .Po Cm main_cancel
854 if the dialog is the sole window of the GUI and therefore named
855 .Cm main
856 .Pc .
858 If the
859 .Cm GtkDialog
860 has an
861 .Sq Ok
862 .Sx GtkButton
863 with id
864 .Ar foo Ns Cm _ok ,
865 it will take care of hiding the dialog window.
866 .Bl -tag -width "commands "
867 .It Commands
868 .Qq Ar id Ns Cm :set_title Ar string
869 replaces the text in the title bar with
870 .Ar string .
872 .Qq Ar id Ns Cm :resize Bq Ar width height
873 changes the size of the dialog window to
874 .Ar width
876 .Ar height
877 pixels if specified, or to the default size.
879 .Qq Ar id Ns Cm :move Ar x y
880 moves the dialog window to position
881 .Pq Ar x , y .
883 .Qq Ar id Ns Cm :fullscreen
885 .Qq Ar id Ns Cm :unfullscreen
886 switch fullscreen mode on and off.
888 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
889 makes the dialog grayed out
890 .Pq Cm 0
891 or responsive
892 .Pq Cm 1 .
894 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
895 hides
896 .Pq Cm 0
897 the dialog, or makes it visible
898 .Pq Cm 1 .
900 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
901 blocks
902 .Pq Cm 1
903 or unblocks
904 .Pq Cm 0
905 feedback messages from the dialog window.
906 Initially, the window is unblocked.
908 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
909 sets the dialog window's tooltip.
910 Default is disabling the tooltip.
912 .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
913 writes a snapshot of the dialog window to an image file of the
914 specified type.
916 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
917 sets the dialog window's minimum size to
918 .Ar width
920 .Ar height .
921 Default is its natural size.
924 .Ar id Ns Cm :style
925 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
927 sets the dialog window's style.
929 .Sx Style .
931 .Qq Ar id Ns Cm :ping Bq Ar text
932 triggers a feedback message.
933 .It Feedback
934 .Qq Ar id Ns Cm \&:closed
935 if the
936 .Cm GtkDialog
937 window was closed by the window manager.
939 .Qq Ar id Ns Cm :ping Ar text
940 if triggered by the
941 .Cm :ping
942 command.
944 .Ss GtkDrawingArea
945 Drawing commands
946 expect a context parameter of the form
947 .Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
948 where
949 .Ar n
950 is an arbitrary non-negative integer that can be used later to
951 reference the command.
952 The first form,
953 .Ar n ,
954 appends its command to the current list of drawing operations.
955 The second form,
956 .Cm = Ns Ar n ,
957 replaces the first drawing operation with context parameter
958 .Ar n
959 by the new command.
960 The third form,
961 .Ar n Ns Cm < Ns Ar m ,
962 inserts its command before the first drawing operation with context
963 parameter
964 .Ar m .
965 Both second and third form fall back to appending.
967 The default coordinate system is a left-handed system with its origin
968 in the upper-left corner.
969 Angles increase from the positive X axis towards the positve Y axis
970 .Pq clockwise in the default system .
971 .Bl -tag -width "commands "
972 .It Commands
973 .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
974 adds a circular arc to the current path.
975 The arc is centered at
976 .Pq Ar x , y
977 and proceeds from
978 .Ar angle1
980 .Ar angle2
981 .Pq in degrees .
983 .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
984 adds a circular arc to the current path.
985 The arc is centered at
986 .Pq Ar x , y
987 and proceeds in the direction of decreasing angles from
988 .Ar angle1
990 .Ar angle2
991 .Pq in degrees .
993 .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
994 adds a line segment from the current point to the point most recently
995 passed to
996 .Ar id Ns Cm :move_to
998 .Ar id Ns Cm :rel_move_to .
1000 .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
1001 adds a cubic Bezier spline from the current point to
1002 .Pq Ar x3 , y3 ,
1003 using
1004 .Pq Ar x1 , y1
1006 .Pq Ar x2 , y2
1007 as control points.
1008 If there is no current point, the curve will start at
1009 .Pq Ar x1 , y1 .
1011 .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
1012 fills the current path and clears it.
1014 .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
1015 fills the current path without clearing it.
1017 .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
1018 adds a line from the current point to
1019 .Pq Ar x , y ,
1020 or creates a new current point at
1021 .Pq Ar x , y .
1023 .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
1024 sets the current point to
1025 .Pq Ar x , y .
1027 .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
1028 adds a rectangle to the current path.
1029 The top left corner is at
1030 .Pq Ar x , y .
1032 .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
1033 adds a cubic Bezier spline from the current point to
1034 .Pq Ar dx3 , dy3 ,
1035 using
1036 .Pq Ar dx1 , dy1
1038 .Pq Ar dx2 , dy2
1039 as control points.
1040 All coordinates are offsets relative to the current point.
1042 .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
1043 adds a line from the current point to a point offset from there by
1044 .Pq Ar dx , dy .
1046 .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
1047 .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
1048 .Ar text
1050 moves the current point such that
1051 .Qq Ar id Ns Cm :show_text Ar n text
1052 will place the specified reference point of
1053 .Ar text
1054 on the original current point.
1056 .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
1057 moves the current point by
1058 .Pq Ar dx , dy .
1060 .Qq Ar id Ns Cm :remove Ar n
1061 removes the elements with context parameter
1062 .Ar n
1063 from the
1064 .Cm GtkDrawingArea Ar id .
1066 .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
1067 rotates the user space axes by
1068 .Ar angle
1069 .Pq in degrees .
1071 .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
1072 scales the user space axes by
1073 .Pq Ar sx , sy .
1075 .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
1076 sets the dash pattern to
1077 .Ar l
1079 .Ar l
1080 off.
1082 .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 ...
1083 resets the dash pattern to a line with arbitrary on/off portions.
1085 .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
1086 resets the dash pattern to a solid line.
1088 .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
1089 .Brq Cm normal | italic | oblique
1090 .Brq Cm normal | bold
1091 .Bq Ar family
1093 sets the font face for subsequent calls of
1094 .Ar id Ns Cm :show_text .
1096 .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
1097 sets the font size for subsequent calls of
1098 .Ar id Ns Cm :show_text .
1100 .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
1101 sets the line cap style.
1102 Default is
1103 .Cm butt .
1105 .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
1106 sets the line junction style.
1107 Default is
1108 .Cm miter .
1110 .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
1111 sets the line width.
1112 Default
1113 .Ar width
1114 is 2.
1116 .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
1117 sets the color; see
1118 .Sx Color .
1120 .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
1121 writes
1122 .Ar text ,
1123 beginning at the current point.
1125 .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
1126 strokes the current path and clears it.
1128 .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
1129 strokes the current path without clearing it.
1131 .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
1132 modifies the current transformation matrix such that
1134 .Dl Va x' Li = Ar xx Va x Li + Ar xy Va y Li + Ar x0 ,
1135 .Dl Va y' Li = Ar yx Va y Li + Ar yy Va y Li + Ar y0 .
1137 Default is resetting the current transformation matrix.
1139 .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
1140 translates the user space origin by
1141 .Pq Ar tx , ty .
1143 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1144 hides
1145 .Pq Cm 0
1146 the drawing area, or makes it visible
1147 .Pq Cm 1 .
1149 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1150 sets the drawing area's tooltip.
1151 Default is disabling the tooltip.
1153 .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
1154 writes a snapshot of the drawing area to an image file of the specified
1155 type.
1157 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1158 sets the drawing areas's minimum size to
1159 .Ar width
1161 .Ar height .
1162 Default is the natural size.
1164 .Qq Ar id Ns Cm :ping Bq Ar text
1165 triggers a feedback message.
1166 .It Feedback
1167 .Qq Ar id Ns Cm :ping Ar text
1168 if triggered by the
1169 .Cm :ping
1170 command.
1172 .Ss GtkEntry
1173 .Bl -tag -width "commands "
1174 .It Commands
1175 .Qq Ar id Ns Cm :set_text Ar string
1176 replaces the user-editable text with
1177 .Ar string .
1179 .Qq Ar id Ns Cm :set_placeholder_text Ar string
1180 sets the
1181 .Ar string
1182 that is displayed when the entry is empty and unfocused.
1184 .Qq Ar id Ns Cm :grab_focus
1185 puts the keyboard focus into the entry.
1187 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1188 makes the entry grayed out
1189 .Pq Cm 0
1190 or responsive
1191 .Pq Cm 1 .
1193 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1194 hides
1195 .Pq Cm 0
1196 the entry, or makes it visible
1197 .Pq Cm 1 .
1199 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1200 blocks
1201 .Pq Cm 1
1202 or unblocks
1203 .Pq Cm 0
1204 feedback messages.
1205 Initially, the entry is unblocked.
1207 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1208 sets the entry's tooltip.
1209 Default is disabling the tooltip.
1211 .Qq Ar id Ns Cm :force
1212 lets the entry report its current content.
1214 .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
1215 writes a snapshot of the entry to an image file of the specified
1216 type.
1218 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1219 sets the entry's minimum size to
1220 .Ar width
1222 .Ar height .
1223 Default is the entry's natural size.
1226 .Ar id Ns Cm :style
1227 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1229 sets the style.
1231 .Sx Style .
1233 .Qq Ar id Ns Cm :ping Bq Ar text
1234 triggers a feedback message.
1235 .It Feedback
1236 .Qq Ar id Ns Cm \&:text Ar text ,
1237 once for each change of
1238 .Ar text .
1240 .Qq Ar id Ns Cm :ping Ar text
1241 if triggered by the
1242 .Cm :ping
1243 command.
1245 .Ss GtkEventBox
1246 .Ar x , y
1247 are mouse pointer coordinates relative to the
1248 .Cm GtkEventBox .
1249 .Bl -tag -width "commands "
1250 .It Commands
1251 .Qq Ar id Ns Cm :grab_focus
1252 puts the keyboard focus onto the event box.
1254 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1255 makes the event box insensitive
1256 .Pq Cm 0
1257 or responsive
1258 .Pq Cm 1 .
1260 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1261 blocks
1262 .Pq Cm 1
1263 or unblocks
1264 .Pq Cm 0
1265 feedback messages.
1266 Initially, the event box is unblocked.
1268 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1269 sets the tooltip of the event box.
1270 Default is disabling the tooltip.
1272 .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
1273 writes a snapshot of the event box to an image file of the specified
1274 type.
1276 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1277 sets the minimum size to
1278 .Ar width
1280 .Ar height .
1281 Default is the natural size of the event box.
1284 .Ar id Ns Cm :style
1285 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1287 sets the widget style.
1289 .Sx Style .
1291 .Qq Ar id Ns Cm :ping Bq Ar text
1292 triggers a feedback message.
1293 .It Feedback
1294 .Qq Ar id Ns Cm \&:button_press Ar b x y ,
1295 .Qq Ar id Ns Cm \&:button_release Ar b x y
1296 where
1297 .Ar b
1298 is the mouse button (normally 1, 2, or 3 for the left, middle, and
1299 right button; others may exist).
1301 .Qq Ar id Ns Cm \&:motion Ar x y
1302 is reported repeatedly while the mouse is being moved with a button
1303 pressed.
1305 .Qq Ar id Ns Cm \&:key_press Ar key ,
1306 .Ar key
1307 being the key's name
1308 .Po e.g.
1309 .Ql Control_L ,
1310 .Ql Tab ,
1311 .Ql a
1312 .Pc .
1314 .Qq Ar id Ns Cm :ping Ar text
1315 if triggered by the
1316 .Cm :ping
1317 command.
1319 .Ss GtkExpander
1320 .Bl -tag -width "commands "
1321 .It Commands
1322 .Qq Ar id Ns Cm :set_label Ar string
1323 replaces the expander label text with
1324 .Ar string .
1326 .Qq Ar id Ns Cm :set_expanded Brq Cm 0 Ns | Ns  1
1327 hides
1328 .Pq Cm 0
1329 the child widget, or makes it visible
1330 .Pq Cm 1 .
1332 .Qq Ar id Ns Cm :grab_focus
1333 puts the keyboard focus onto the expander.
1335 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1336 makes the expander grayed out
1337 .Pq Cm 0
1338 or responsive
1339 .Pq Cm 1 .
1341 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1342 hides
1343 .Pq Cm 0
1344 the expander, or makes it visible
1345 .Pq Cm 1 .
1347 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1348 sets the expander's tooltip.
1349 Default is disabling the tooltip.
1351 .Qq Ar id Ns Cm :force
1352 toggles the expansion state.
1354 .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
1355 writes a snapshot of the expander to an image file of the specified
1356 type.
1358 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1359 sets the expander's minimum size to
1360 .Ar width
1362 .Ar height .
1363 Default is the natural size.
1366 .Ar id Ns Cm :style
1367 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1369 sets the style.
1371 .Sx Style .
1373 .Qq Ar id Ns Cm :ping Bq Ar text
1374 triggers a feedback message.
1375 .It Feedback
1376 .Qq Ar id Ns Cm :ping Ar text
1377 if triggered by the
1378 .Cm :ping
1379 command.
1381 .Ss GtkGrid
1382 .Bl -tag -width "commands "
1383 .It Commands
1384 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1385 hides
1386 .Pq Cm 0
1387 the grid, or makes it visible
1388 .Pq Cm 1 .
1389 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1390 sets the grid's tooltip.
1391 Default is disabling the tooltip.
1393 .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
1394 writes a snapshot of the grid to an image file of the specified
1395 type.
1397 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1398 sets the grid's minimum size to
1399 .Ar width
1401 .Ar height .
1402 Default is the grid's natural size.
1405 .Ar id Ns Cm :style
1406 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1408 sets the style.
1410 .Sx Style .
1412 .Qq Ar id Ns Cm :ping Bq Ar text
1413 triggers a feedback message.
1414 .It Feedback
1415 .Qq Ar id Ns Cm :ping Ar text
1416 if triggered by the
1417 .Cm :ping
1418 command.
1420 .Ss GtkFileChooserButton
1421 .Bl -tag -width "commands "
1422 .It Commands
1423 .Qq Ar id Ns Cm :set_filename Ar path
1424 preselects
1425 .Ar path
1426 to the extent it exists.
1428 .Qq Ar id Ns Cm :grab_focus
1429 puts the keyboard focus onto the button.
1431 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1432 makes the button grayed out
1433 .Pq Cm 0
1434 or responsive
1435 .Pq Cm 1 .
1437 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1438 hides
1439 .Pq Cm 0
1440 the button, or makes it visible
1441 .Pq Cm 1 .
1443 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1444 blocks
1445 .Pq Cm 1
1446 or unblocks
1447 .Pq Cm 0
1448 feedback messages.
1449 Initially, the button is unblocked.
1451 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1452 sets the button's tooltip.
1453 Default is disabling the tooltip.
1455 .Qq Ar id Ns Cm :force
1456 simulates fresh selection of the currently selected pathname.
1458 .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
1459 writes a snapshot of the button to an image file of the specified
1460 type.
1462 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1463 sets the button's minimum size to
1464 .Ar width
1466 .Ar height .
1467 Default is the widget's natural size.
1470 .Ar id Ns Cm :style
1471 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1473 sets the style.
1475 .Sx Style .
1477 .Qq Ar id Ns Cm :ping Bq Ar text
1478 triggers a feedback message.
1479 .It Feedback
1480 .Qq Ar id Ns Cm \&:file Ar pathname
1481 if the selection has changed.
1483 .Qq Ar id Ns Cm :ping Ar text
1484 if triggered by the
1485 .Cm :ping
1486 command.
1488 .Ss GtkFileChooserDialog
1490 .Cm GtkFileChooserDialog
1491 with id
1492 .Ar foo
1493 will be invoked by a
1494 .Sx GtkMenuItem
1495 or a
1496 .Sx GtkImageMenuItem
1497 with id
1498 .Ar foo Ns Cm _invoke .
1501 .Cm GtkFileChooserDialog
1502 should have an
1503 .Sq OK
1504 .Sx GtkButton
1505 with id
1506 .Ar foo Ns Cm _ok
1507 .Po Cm main_ok
1508 if the dialog is the sole window of the GUI and therefore named
1509 .Cm main
1510 .Pc .
1513 .Cm GtkFileChooserDialog
1514 may have a
1515 .Sq Cancel
1516 .Sx GtkButton
1517 with id
1518 .Ar foo Ns Cm _cancel
1519 .Po Cm main_cancel
1520 if the dialog is the sole window of the GUI and therefore named
1521 .Cm main
1522 .Pc .
1525 .Cm GtkFileChooserDialog
1526 may have an
1527 .Sq Apply
1528 .Sx GtkButton
1529 with id
1530 .Ar foo Ns Cm _apply
1531 .Po Cm main_apply
1532 if the dialog is the sole window of the GUI and therefore named
1533 .Cm main
1534 .Pc .
1535 .Bl -tag -width "commands "
1536 .It Commands
1537 .Qq Ar id Ns Cm :set_filename Ar path
1538 preselects
1539 .Ar path
1540 to the extent it exists.
1542 .Qq Ar id Ns Cm :set_current_name Ar string
1543 makes
1544 .Ar string
1545 the suggested filename, which may not yet exist.
1546 .Ar string
1547 should either resemble an absolute path, or the
1548 .Ar directory
1549 must be set separately by
1550 .Ar id Ns Cm :set_filename Ar directory .
1552 .Qq Ar id Ns Cm :set_title Ar string
1553 replaces the text in the title bar with
1554 .Ar string .
1556 .Qq Ar id Ns Cm :resize Bq Ar width height
1557 changes the size of the dialog window to
1558 .Ar width
1560 .Ar height
1561 pixels if specified, or to the default size.
1563 .Qq Ar id Ns Cm :move Ar x y
1564 moves the dialog window to position
1565 .Pq Ar x , y .
1567 .Qq Ar id Ns Cm :fullscreen
1569 .Qq Ar id Ns Cm :unfullscreen
1570 switch fullscreen mode on and off.
1572 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1573 makes the dialog grayed out
1574 .Pq Cm 0
1575 or responsive
1576 .Pq Cm 1 .
1578 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1579 hides
1580 .Pq Cm 0
1581 the dialog, or makes it visible
1582 .Pq Cm 1 .
1584 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1585 blocks
1586 .Pq Cm 1
1587 or unblocks
1588 .Pq Cm 0
1589 feedback messages form the dialog window.
1590 Initially, the widget is unblocked.
1592 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1593 sets the dialog window's tooltip.
1594 Default is disabling the tooltip.
1596 .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
1597 writes a snapshot of the widget to an image file of the specified
1598 type.
1600 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1601 sets the widget's minimum size to
1602 .Ar width
1604 .Ar height .
1605 Default is the widget's natural size.
1608 .Ar id Ns Cm :style
1609 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1611 sets the widget style.
1613 .Sx Style .
1615 .Qq Ar id Ns Cm :ping Bq Ar text
1616 triggers a feedback message.
1617 .It Feedback
1618 .Qq Ar id Ns Cm \&:file Ar pathname
1619 and/or
1620 .Qq Ar id Ns Cm \&:folder Ar pathname
1622 .Qq Ar id Ns Cm \&:closed
1623 if the
1624 .Cm GtkFileChooserDialog
1625 window was closed by the window manager.
1627 .Qq Ar id Ns Cm :ping Ar text
1628 if triggered by the
1629 .Cm :ping
1630 command.
1632 .Ss GtkFontButton
1633 .Bl -tag -width "commands "
1634 .It Commands
1635 .Qq Ar id Ns Cm :set_font_name Ar fontname
1636 preselects the font.
1638 .Qq Ar id Ns Cm :grab_focus
1639 puts the keyboard focus onto the button.
1641 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1642 makes the button grayed out
1643 .Pq Cm 0
1644 or responsive
1645 .Pq Cm 1 .
1647 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1648 hides
1649 .Pq Cm 0
1650 the button, or makes it visible
1651 .Pq Cm 1 .
1653 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1654 blocks
1655 .Pq Cm 1
1656 or unblocks
1657 .Pq Cm 0
1658 feedback messages.
1659 Initially, the button is unblocked.
1661 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1662 sets the button's tooltip.
1663 Default is disabling the tooltip.
1665 .Qq Ar id Ns Cm :force
1666 opens the dialog window.
1668 .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
1669 writes a snapshot of the button to an image file of the specified
1670 type.
1672 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1673 sets the button's minimum size to
1674 .Ar width
1676 .Ar height .
1677 Default is the button's natural size.
1680 .Ar id Ns Cm :style
1681 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1683 sets the style.
1685 .Sx Style .
1687 .Qq Ar id Ns Cm :ping Bq Ar text
1688 triggers a feedback message.
1689 .It Feedback
1690 .Qq Ar id Ns Cm \&:font Ar fontname
1692 .Qq Ar id Ns Cm :ping Ar text
1693 if triggered by the
1694 .Cm :ping
1695 command.
1697 .Ss GtkFrame
1698 .Bl -tag -width "commands "
1699 .It Commands
1700 .Qq Ar id Ns Cm :set_label Ar text
1701 replaces the frame label text with
1702 .Ar string .
1704 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1705 makes the frame and its content grayed out
1706 .Pq Cm 0
1707 or responsive
1708 .Pq Cm 1 .
1710 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1711 hides
1712 .Pq Cm 0
1713 the frame, or makes it visible
1714 .Pq Cm 1 .
1716 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1717 sets the frame's tooltip.
1718 Default is disabling the tooltip.
1720 .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
1721 writes a snapshot of the frame to an image file of the specified
1722 type.
1724 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1725 sets the widget's minimum size to
1726 .Ar width
1728 .Ar height .
1729 Default is the frame's natural size.
1732 .Ar id Ns Cm :style
1733 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1735 sets the style.
1737 .Sx Style .
1739 .Qq Ar id Ns Cm :ping Bq Ar text
1740 triggers a feedback message.
1741 .It Feedback
1742 .Qq Ar id Ns Cm :ping Ar text
1743 if triggered by the
1744 .Cm :ping
1745 command.
1747 .Ss GtkImage
1748 .Bl -tag -width "commands "
1749 .It Commands
1750 .Qq Ar id Ns Cm :set_from_icon_name Ar icon-name
1751 replaces the image with one of the standard icons.
1753 .Qq Ar id Ns Cm :set_from_file Ar path
1754 replaces the image by the one found at
1755 .Ar path Ns .
1757 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1758 hides
1759 .Pq Cm 0
1760 the image, or makes it visible
1761 .Pq Cm 1 .
1763 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1764 sets the image's tooltip.
1765 Default is disabling the tooltip.
1767 .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
1768 writes a snapshot of the image to an image file of the specified
1769 type.
1771 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1772 sets the images's minimum size to
1773 .Ar width
1775 .Ar height .
1776 Default is the image's natural size.
1779 .Ar id Ns Cm :style
1780 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1782 sets the style.
1784 .Sx Style .
1786 .Qq Ar id Ns Cm :ping Bq Ar text
1787 triggers a feedback message.
1788 .It Feedback
1789 .Qq Ar id Ns Cm :ping Ar text
1790 if triggered by the
1791 .Cm :ping
1792 command.
1794 .Ss GtkMenu
1795 .Bl -tag -width "commands "
1796 .It Commands
1797 .Qq Ar id Ns Cm :popup ,
1798 .Qq Ar id Ns Cm :popdown
1799 displays the menu at mouse position or closes it, respectively.
1801 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1802 makes the menu grayed out
1803 .Pq Cm 0
1804 or responsive
1805 .Pq Cm 1 .
1807 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1808 sets the menu's tooltip.
1809 Default is disabling the tooltip.
1811 .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
1812 writes a snapshot of the (popped-up) menu to an image file of the
1813 specified type.
1815 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1816 sets the menu's minimum size to
1817 .Ar width
1819 .Ar height .
1820 Default is the menu's natural size.
1823 .Ar id Ns Cm :style
1824 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1826 sets the menu's style.
1828 .Sx Style .
1830 .Qq Ar id Ns Cm :ping Bq Ar text
1831 triggers a feedback message.
1832 .It Feedback
1833 .Qq Ar id Ns Cm :ping Ar text
1834 if triggered by the
1835 .Cm :ping
1836 command.
1838 .Ss GtkMenuButton
1839 .Bl -tag -width "commands "
1840 .It Commands
1841 .Qq Ar id Ns Cm :grab_focus
1842 puts the keyboard focus onto the button.
1844 .Qq Ar id Ns Cm :force
1845 simulates a click onto the button.
1847 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1848 makes the button grayed out
1849 .Pq Cm 0
1850 or responsive
1851 .Pq Cm 1 .
1853 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1854 hides
1855 .Pq Cm 0
1856 the button, or makes it visible
1857 .Pq Cm 1 .
1859 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1860 sets the button's tooltip.
1861 Default is disabling the tooltip.
1863 .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
1864 writes a snapshot of the button to an image file of the specified
1865 type.
1867 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1868 sets the button's minimum size to
1869 .Ar width
1871 .Ar height .
1872 Default is the button's natural size.
1875 .Ar id Ns Cm :style
1876 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1878 sets the button's style.
1880 .Sx Style .
1882 .Qq Ar id Ns Cm :ping Bq Ar text
1883 triggers a feedback message.
1884 .It Feedback
1885 .Qq Ar id Ns Cm :ping Ar text
1886 if triggered by the
1887 .Cm :ping
1888 command.
1890 .Ss GtkImageMenuItem
1891 .Cm GtkImageMenuItem
1892 is deprecated.
1893 .Bl -tag -width "commands "
1894 .It Commands
1895 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1896 makes the item grayed out
1897 .Pq Cm 0
1898 or responsive
1899 .Pq Cm 1 .
1901 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1902 hides
1903 .Pq Cm 0
1904 the item, or makes it visible
1905 .Pq Cm 1 .
1907 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1908 blocks
1909 .Pq Cm 1
1910 or unblocks
1911 .Pq Cm 0
1912 feedback messages.
1913 Initially, the item is unblocked.
1915 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1916 sets the item's tooltip.
1917 Default is disabling the tooltip.
1919 .Qq Ar id Ns Cm :force
1920 simulates a click on the menu item.
1922 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1923 sets the item's minimum size to
1924 .Ar width
1926 .Ar height .
1927 Default is the item's natural size.
1930 .Ar id Ns Cm :style
1931 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1933 sets the item's style.
1935 .Sx Style .
1937 .Qq Ar id Ns Cm :ping Bq Ar text
1938 triggers a feedback message.
1939 .It Feedback
1941 .Cm GtkImageMenuItem
1942 with id
1943 .Ar foo Ns Cm _invoke
1944 will invoke the
1945 .Sx GtkDialog
1947 .Sx GtkFileChooserDialog
1948 with id
1949 .Ar foo
1950 if it exists.
1951 If there isn't any dialog attached to the
1952 .Cm GtkImageMenuItem ,
1953 it reports
1954 .Qq Ar id Ns Cm \&:active Ar label .
1956 .Qq Ar id Ns Cm :ping Ar text
1957 if triggered by the
1958 .Cm :ping
1959 command.
1961 .Ss GtkInfoBar
1962 .Bl -tag -width "commands "
1963 .It Commands
1964 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1965 makes the info bar grayed out
1966 .Pq Cm 0
1967 or responsive
1968 .Pq Cm 1 .
1970 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1971 hides
1972 .Pq Cm 0
1973 the info bar, or makes it visible
1974 .Pq Cm 1 .
1976 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1977 sets the info bar's tooltip.
1978 Default is disabling the tooltip.
1980 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1981 sets the info bar's minimum size to
1982 .Ar width
1984 .Ar height .
1985 Default is the info bar's natural size.
1988 .Ar id Ns Cm :style
1989 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1991 sets the style.
1993 .Sx Style .
1995 .Qq Ar id Ns Cm :ping Bq Ar text
1996 triggers a feedback message.
1997 .It Feedback
1998 .Qq Ar id Ns Cm :ping Ar text
1999 if triggered by the
2000 .Cm :ping
2001 command.
2003 .Ss GtkLabel
2004 .Bl -tag -width "commands "
2005 .It Commands
2006 .Qq Ar id Ns Cm :set_text Ar string
2007 replaces the label text with
2008 .Ar string .
2010 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2011 makes the label grayed out
2012 .Pq Cm 0
2013 or clearly visible
2014 .Pq Cm 1 .
2016 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2017 hides
2018 .Pq Cm 0
2019 the label, or makes it visible
2020 .Pq Cm 1 .
2022 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2023 sets the label's tooltip.
2024 Default is disabling the tooltip.
2026 .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
2027 writes a snapshot of the label to an image file of the specified
2028 type.
2030 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2031 sets the label's minimum size to
2032 .Ar width
2034 .Ar height .
2035 Default is the natural size.
2038 .Ar id Ns Cm :style
2039 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2041 sets the label's style.
2043 .Sx Style .
2045 .Qq Ar id Ns Cm :ping Bq Ar text
2046 triggers a feedback message.
2047 .It Feedback
2048 .Qq Ar id Ns Cm :ping Ar text
2049 if triggered by the
2050 .Cm :ping
2051 command.
2053 .Ss GtkLinkButton
2054 .Bl -tag -width "commands "
2055 .It Commands
2056 .Qq Ar id Ns Cm :set_visited Brq Cm 0 Ns | Ns Cm 1
2057 gives the button text the appearance of an unvisited
2058 .Pq Cm 0 , No default
2059 or visited
2060 .Pq Cm 1
2061 link.
2063 .Qq Ar id Ns Cm :set_label Ar string
2064 replaces the button text with
2065 .Ar string .
2067 .Qq Ar id Ns Cm :grab_focus
2068 puts the keyboard focus onto the button.
2070 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2071 makes the button grayed out
2072 .Pq Cm 0
2073 or responsive
2074 .Pq Cm 1 .
2076 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2077 hides
2078 .Pq Cm 0
2079 the button, or makes it visible
2080 .Pq Cm 1 .
2082 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2083 blocks
2084 .Pq Cm 1
2085 or unblocks
2086 .Pq Cm 0
2087 feedback messages.
2088 Initially, the button is unblocked.
2090 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2091 sets the button's tooltip.
2092 Default is disabling the tooltip.
2094 .Qq Ar id Ns Cm :force
2095 simulates a click on the button.
2097 .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
2098 writes a snapshot of the button to an image file of the specified
2099 type.
2101 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2102 sets the button's minimum size to
2103 .Ar width
2105 .Ar height .
2106 Default is the button's natural size.
2109 .Ar id Ns Cm :style
2110 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2112 sets the style.
2114 .Sx Style .
2116 .Qq Ar id Ns Cm :ping Bq Ar text
2117 triggers a feedback message.
2118 .It Feedback
2119 .Qq Ar id Ns Cm \&:clicked
2121 .Qq Ar id Ns Cm :ping Ar text
2122 if triggered by the
2123 .Cm :ping
2124 command.
2126 .Ss GtkMenuBar
2127 .Bl -tag -width "commands "
2128 .It Commands
2129 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2130 makes the menu bar grayed out
2131 .Pq Cm 0
2132 or responsive
2133 .Pq Cm 1 .
2135 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2136 hides
2137 .Pq Cm 0
2138 the menu bar, or makes it visible
2139 .Pq Cm 1 .
2141 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2142 sets the menu bar's tooltip.
2143 Default is disabling the tooltip.
2145 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2146 sets the menu bar's minimum size to
2147 .Ar width
2149 .Ar height .
2150 Default is its natural size.
2153 .Ar id Ns Cm :style
2154 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2156 sets the menu bar's style.
2158 .Sx Style .
2160 .Qq Ar id Ns Cm :ping Bq Ar text
2161 triggers a feedback message.
2162 .It Feedback
2163 .Qq Ar id Ns Cm :ping Ar text
2164 if triggered by the
2165 .Cm :ping
2166 command.
2168 .Ss GtkMenuItem
2169 .Bl -tag -width "commands "
2170 .It Commands
2171 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2172 makes the item grayed out
2173 .Pq Cm 0
2174 or responsive
2175 .Pq Cm 1 .
2177 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2178 hides
2179 .Pq Cm 0
2180 the item, or makes it visible
2181 .Pq Cm 1 .
2183 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2184 blocks
2185 .Pq Cm 1
2186 or unblocks
2187 .Pq Cm 0
2188 feedback messages.
2189 Initially, the item is unblocked.
2191 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2192 sets the item's tooltip.
2193 Default is disabling the tooltip.
2195 .Qq Ar id Ns Cm :force
2196 simulates a click on the menu item.
2198 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2199 sets the item's minimum size to
2200 .Ar width
2202 .Ar height .
2203 Default is the item's natural size.
2206 .Ar id Ns Cm :style
2207 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2209 sets the item's style.
2211 .Sx Style .
2213 .Qq Ar id Ns Cm :ping Bq Ar text
2214 triggers a feedback message.
2215 .It Feedback
2217 .Cm GtkMenuItem
2218 with id
2219 .Ar foo Ns Cm _invoke
2220 will invoke the
2221 .Sx GtkDialog
2223 .Sx GtkFileChooserDialog
2224 with id
2225 .Ar foo
2226 if it exists.
2227 If there isn't any dialog attached to the
2228 .Cm GtkMenuItem ,
2229 it reports
2230 .Qq Ar id Ns Cm \&:active Ar label .
2232 .Qq Ar id Ns Cm :ping Ar text
2233 if triggered by the
2234 .Cm :ping
2235 command.
2237 .Ss GtkNotebook
2238 .Bl -tag -width "commands "
2239 .It Commands
2240 .Qq Ar id Ns Cm :set_current_page Ar n
2241 switches to zero-based page number
2242 .Ar n .
2244 .Qq Ar id Ns Cm :grab_focus
2245 puts the keyboard focus onto the notebook.
2247 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2248 makes the notebook grayed out
2249 .Pq Cm 0
2250 or responsive
2251 .Pq Cm 1 .
2253 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2254 hides
2255 .Pq Cm 0
2256 the notebook, or makes it visible
2257 .Pq Cm 1 .
2259 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2260 sets the notebook's tooltip.
2261 Default is disabling the tooltip.
2263 .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
2264 writes a snapshot of the notebook to an image file of the specified
2265 type.
2267 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2268 sets the notebooks's minimum size to
2269 .Ar width
2271 .Ar height .
2272 Default is the widget's natural size.
2275 .Ar id Ns Cm :style
2276 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2278 sets the notebook's style.
2280 .Sx Style .
2282 .Qq Ar id Ns Cm :ping Bq Ar text
2283 triggers a feedback message.
2284 .It Feedback
2285 .Qq Ar id Ns Cm :ping Ar text
2286 if triggered by the
2287 .Cm :ping
2288 command.
2290 .Ss GtkOverlay
2291 .Bl -tag -width "commands "
2292 .It Commands
2293 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2294 makes the overlay grayed out
2295 .Pq Cm 0
2296 or responsive
2297 .Pq Cm 1 .
2299 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2300 hides
2301 .Pq Cm 0
2302 the overlay, or makes it visible
2303 .Pq Cm 1 .
2305 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2306 sets the overlay's tooltip.
2307 Default is disabling the tooltip.
2309 .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
2310 writes a snapshot of the overlay to an image file of the specified
2311 type.
2313 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2314 sets the overlay's minimum size to
2315 .Ar width
2317 .Ar height .
2318 Default is the overlay's natural size.
2321 .Ar id Ns Cm :style
2322 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2324 sets the style.
2326 .Sx Style .
2328 .Qq Ar id Ns Cm :ping Bq Ar text
2329 triggers a feedback message.
2330 .It Feedback
2331 .Qq Ar id Ns Cm :ping Ar text
2332 if triggered by the
2333 .Cm :ping
2334 command.
2336 .Ss GtkPaned
2337 .Bl -tag -width "commands "
2338 .It Commands
2339 .Qq Ar id Ns Cm :grab_focus
2340 puts the keyboard focus onto the handle.
2342 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2343 makes the widget grayed out
2344 .Pq Cm 0
2345 or responsive
2346 .Pq Cm 1 .
2348 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2349 hides
2350 .Pq Cm 0
2351 the widget, or makes it visible
2352 .Pq Cm 1 .
2354 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2355 sets the widget's tooltip.
2356 Default is disabling the tooltip.
2358 .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
2359 writes a snapshot of the widget to an image file of the specified
2360 type.
2362 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2363 sets the widget's minimum size to
2364 .Ar width
2366 .Ar height .
2367 Default is the widget's natural size.
2370 .Ar id Ns Cm :style
2371 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2373 sets the style.
2375 .Sx Style .
2377 .Qq Ar id Ns Cm :ping Bq Ar text
2378 triggers a feedback message.
2379 .It Feedback
2380 .Qq Ar id Ns Cm :ping Ar text
2381 if triggered by the
2382 .Cm :ping
2383 command.
2385 .Ss GtkPlug
2386 The main window can be turned into a
2387 .Cm GtkPlug
2388 and embedded into the XEmbed socket of another process; see
2389 .Sx OPTIONS ,
2390 option
2391 .Fl e .
2392 .Ss GtkPrintUnixDialog
2393 .Bl -tag -width "commands "
2394 .It Commands
2395 .Qq Ar id Ns Cm :print Ar file.ps
2396 opens the print dialog.
2397 Pressing the
2398 .Ql Print
2399 button sends
2400 .Ar file.ps
2401 to the printer the user selected in the dialog.
2403 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2404 makes the dialog grayed out
2405 .Pq Cm 0
2406 or responsive
2407 .Pq Cm 1 .
2409 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2410 hides
2411 .Pq Cm 0
2412 the dialog, or makes it visible
2413 .Pq Cm 1 .
2415 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2416 blocks
2417 .Pq Cm 1
2418 or unblocks
2419 .Pq Cm 0
2420 feedback messages.
2421 Initially, the dialog is unblocked.
2423 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2424 sets the dialog's tooltip.
2425 Default is disabling the tooltip.
2427 .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
2428 writes a snapshot of the dialog to an image file of the specified
2429 type.
2431 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2432 sets the dialog's minimum size to
2433 .Ar width
2435 .Ar height .
2436 Default is the dialog's natural size.
2439 .Ar id Ns Cm :style
2440 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2442 sets the widget style.
2444 .Sx Style .
2446 .Qq Ar id Ns Cm :ping Bq Ar text
2447 triggers a feedback message.
2448 .It Feedback
2449 .Qq Ar id Ns Cm \&:closed
2450 if the
2451 .Cm GtkPrintUnixDialog
2452 window was closed by the window manager.
2454 .Qq Ar id Ns Cm :ping Ar text
2455 if triggered by the
2456 .Cm :ping
2457 command.
2459 .Ss GtkProgressBar
2460 .Bl -tag -width "commands "
2461 .It Commands
2462 .Qq Ar id Ns Cm :set_fraction Ar x
2463 moves the progress bar to
2464 .Ar x
2465 .Pq between 0 and 1 .
2467 .Qq Ar id Ns Cm :set_text Bq Ar string
2468 replaces the text of the progress bar with
2469 .Ar string .
2470 Default is the progress percentage.
2472 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2473 hides
2474 .Pq Cm 0
2475 the progress bar, or makes it visible
2476 .Pq Cm 1 .
2478 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2479 sets the tooltip of the progressbar.
2480 Default is disabling the tooltip.
2482 .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
2483 writes a snapshot of the progress bar to an image file of the
2484 specified type.
2486 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2487 sets the minimum size of the progress bar to
2488 .Ar width
2490 .Ar height .
2491 Default is the natural size.
2494 .Ar id Ns Cm :style
2495 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2497 sets the style.
2499 .Sx Style .
2501 .Qq Ar id Ns Cm :ping Bq Ar text
2502 triggers a feedback message.
2503 .It Feedback
2504 .Qq Ar id Ns Cm :ping Ar text
2505 if triggered by the
2506 .Cm :ping
2507 command.
2509 .Ss GtkRadioButton
2510 .Bl -tag -width "commands "
2511 .It Commands
2512 .Qq Ar id Ns Cm :set_active 1
2513 switches the button on.
2514 All other buttons of the same group will go off automatically.
2516 .Qq Ar id Ns Cm :set_label Ar string
2517 replaces the button text with
2518 .Ar string .
2520 .Qq Ar id Ns Cm :grab_focus
2521 puts the keyboard focus onto the button.
2523 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2524 makes the button grayed out
2525 .Pq Cm 0
2526 or responsive
2527 .Pq Cm 1 .
2529 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2530 hides
2531 .Pq Cm 0
2532 the button, or makes it visible
2533 .Pq Cm 1 .
2535 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2536 blocks
2537 .Pq Cm 1
2538 or unblocks
2539 .Pq Cm 0
2540 feedback messages.
2541 Initially, the button is unblocked.
2543 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2544 sets the button's tooltip.
2545 Default is disabling the tooltip.
2547 .Qq Ar id Ns Cm :force
2548 simulates a click on the button.
2550 .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
2551 writes a snapshot of the button to an image file of the specified
2552 type.
2554 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2555 sets the button's minimum size to
2556 .Ar width
2558 .Ar height .
2559 Default is the button's natural size.
2562 .Ar id Ns Cm :style
2563 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2565 sets the style.
2567 .Sx Style .
2569 .Qq Ar id Ns Cm :ping Bq Ar text
2570 triggers a feedback message.
2571 .It Feedback
2572 .Qq Ar id Ns Cm \&:1
2573 if switched on, or
2574 .Qq Ar id Ns Cm \&:0
2575 otherwise.
2577 .Qq Ar id Ns Cm :ping Ar text
2578 if triggered by the
2579 .Cm :ping
2580 command.
2582 .Ss GtkScale
2583 .Bl -tag -width "commands "
2584 .It Commands
2585 .Qq Ar id Ns Cm :set_value Ar x
2586 moves the slider to value
2587 .Ar x .
2589 .Qq Ar id Ns Cm :set_fill_level Bq Ar x
2590 moves the fill level indicator to value
2591 .Ar x .
2592 Default is hiding the fill level indicator.
2594 .Qq Ar id Ns Cm :set_range Ar min max
2595 changes the range.
2597 .Qq Ar id Ns Cm :set_increments Ar step page
2598 sets the steps the slider moves while pressing arrow keys and
2599 .Ql Page_Up Ns
2600 .Pf / Ql Page_Down ,
2601 respectively.
2603 .Qq Ar id Ns Cm :grab_focus
2604 puts the keyboard focus onto the scale.
2606 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2607 makes the scale grayed out
2608 .Pq Cm 0
2609 or responsive
2610 .Pq Cm 1 .
2612 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2613 hides
2614 .Pq Cm 0
2615 the scale, or makes it visible
2616 .Pq Cm 1 .
2618 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2619 blocks
2620 .Pq Cm 1
2621 or unblocks
2622 .Pq Cm 0
2623 feedback messages.
2624 Initially, the scale is unblocked.
2626 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2627 sets the scale's tooltip.
2628 Default is disabling the tooltip.
2630 .Qq Ar id Ns Cm :force
2631 simulates fresh selection of the current value.
2633 .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
2634 writes a snapshot of the scale to an image file of the specified
2635 type.
2637 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2638 sets the scale's minimum size to
2639 .Ar width
2641 .Ar height .
2642 Default is the natural size.
2645 .Ar id Ns Cm :style
2646 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2648 sets the style.
2650 .Sx Style .
2652 .Qq Ar id Ns Cm :ping Bq Ar text
2653 triggers a feedback message.
2654 .It Feedback
2655 .Qq Ar id Ns Cm \&:value Ar number
2657 .Qq Ar id Ns Cm :ping Ar text
2658 if triggered by the
2659 .Cm :ping
2660 command.
2662 .Ss GtkScrolledWindow
2663 .Bl -tag -width "commands "
2664 .It Commands
2665 .Qq Ar id Ns Cm :hscroll Ar position
2667 .Qq Ar id Ns Cm :vscroll Ar position
2668 scroll
2669 .Ar position
2670 to the left or top edge of the
2671 .Cm GtkScrolledWindow ,
2672 respectively.
2674 .Qq Ar id Ns Cm :hscroll_to_range Ar pos0 pos1
2676 .Qq Ar id Ns Cm :vscroll_to_range Ar pos0 pos1
2677 scroll, if necessary, the range between
2678 .Ar pos0
2680 .Ar pos1
2681 into the
2682 .Cm GtkScrolledWindow .
2683 If the range is greater than the window, the initial part of the range
2684 will be visible.
2686 .Qq Ar id Ns Cm :grab_focus
2687 puts the keyboard focus onto the widget.
2689 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2690 makes the widget grayed out
2691 .Pq Cm 0
2692 or responsive
2693 .Pq Cm 1 .
2695 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2696 hides
2697 .Pq Cm 0
2698 the widget, or makes it visible
2699 .Pq Cm 1 .
2701 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2702 sets the widget's tooltip.
2703 Default is disabling the tooltip.
2705 .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
2706 writes a snapshot of the widget to an image file of the specified
2707 type.
2709 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2710 sets the minimum size to
2711 .Ar width
2713 .Ar height .
2714 Default is the widget's natural size.
2717 .Ar id Ns Cm :style
2718 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2720 sets the style.
2722 .Sx Style .
2724 .Qq Ar id Ns Cm :ping Bq Ar text
2725 triggers a feedback message.
2726 .It Feedback
2727 .Qq Ar id Ns Cm :ping Ar text
2728 if triggered by the
2729 .Cm :ping
2730 command.
2732 .Ss GtkSeparator
2733 .Bl -tag -width "commands "
2734 .It Commands
2735 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2736 makes the separator insensitive
2737 .Pq Cm 0
2738 or responsive
2739 .Pq Cm 1 .
2741 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2742 sets the tooltip of the separator.
2743 Default is disabling the tooltip.
2745 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2746 hides
2747 .Pq Cm 0
2748 the separator, or makes it visible
2749 .Pq Cm 1 .
2751 .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
2752 writes a snapshot of the separator to an image file of the specified
2753 type.
2755 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2756 sets the minimum size to
2757 .Ar width
2759 .Ar height .
2760 Default is the natural size of the separator.
2763 .Ar id Ns Cm :style
2764 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2766 sets the widget style.
2768 .Sx Style .
2770 .Qq Ar id Ns Cm :ping Bq Ar text
2771 triggers a feedback message.
2772 .It Feedback
2773 .Qq Ar id Ns Cm :ping Ar text
2774 if triggered by the
2775 .Cm :ping
2776 command.
2778 .Ss GtkSeparatorMenuItem
2779 .Bl -tag -width "commands "
2780 .It Commands
2781 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2782 makes the menu item insensitive
2783 .Pq Cm 0
2784 or responsive
2785 .Pq Cm 1 .
2787 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2788 hides
2789 .Pq Cm 0
2790 the menu item, or makes it visible
2791 .Pq Cm 1 .
2793 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2794 sets the tooltip of the menu item.
2795 Default is disabling the tooltip.
2797 .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
2798 writes a snapshot of the menu item to an image file of the specified
2799 type.
2801 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2802 sets the minimum size to
2803 .Ar width
2805 .Ar height .
2806 Default is the natural size of the menu item.
2809 .Ar id Ns Cm :style
2810 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2812 sets the widget style.
2814 .Sx Style .
2816 .Qq Ar id Ns Cm :ping Bq Ar text
2817 triggers a feedback message.
2818 .It Feedback
2819 .Qq Ar id Ns Cm :ping Ar text
2820 if triggered by the
2821 .Cm :ping
2822 command.
2824 .Ss GtkSizeGroup
2825 .Bl -tag -width "commands "
2826 .It Commands
2827 .Qq Ar id Ns Cm :ping Bq Ar text
2828 triggers a feedback message.
2829 .It Feedback
2830 .Qq Ar id Ns Cm :ping Ar text
2831 if triggered by the
2832 .Cm :ping
2833 command.
2835 .Ss GtkSocket
2836 .Cm GtkSocket
2837 may be unsupported by Glade, but its definition can be inserted
2838 manually into the GtkBuilder
2839 .Pq Pa .ui
2840 file:
2841 .Bd -literal -offset indent
2842 <child>
2843   <object class="GtkSocket" id="socket1">
2844     <property name="visible">True</property>
2845     <property name="can_focus">True</property>
2846   </object>
2847   <packing>
2848     <property name="expand">True</property>
2849     <property name="fill">True</property>
2850     <property name="position">1</property>
2851   </packing>
2852 </child>
2854 .Bl -tag -width "commands "
2855 .It Commands
2856 .Qq Ar id Ns Cm :id
2857 requests a feedback message containing the socket
2858 .Ar xid .
2860 .Qq Ar id Ns Cm :grab_focus
2861 puts the keyboard focus onto the socket.
2863 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2864 makes the socket grayed out
2865 .Pq Cm 0
2866 or responsive
2867 .Pq Cm 1 .
2869 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2870 hides
2871 .Pq Cm 0
2872 the socket, or makes it visible
2873 .Pq Cm 1 .
2875 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2876 sets the socket's tooltip.
2877 Default is disabling the tooltip.
2878 .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
2879 writes a snapshot of the socket to an image file of the specified
2880 type.
2882 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2883 sets the socket's minimum size to
2884 .Ar width
2886 .Ar height .
2887 Default is the socket's natural size.
2890 .Ar id Ns Cm :style
2891 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2893 sets the style.
2895 .Sx Style .
2897 .Qq Ar id Ns Cm :ping Bq Ar text
2898 triggers a feedback message.
2899 .It Feedback
2900 .Qq Ar id Ns Cm :id Ar xid
2901 can be used by another process to XEmbed its widgets into the
2902 .Cm GtkSocket .
2904 .Qq Ar id Ns Cm \&:plug-added ,
2906 .Ar id Ns Cm \&:plug-removed
2907 .Qc .
2908 Notification that the other process has inserted its widgets into or
2909 removed them from the
2910 .Cm GtkSocket .
2912 .Qq Ar id Ns Cm :ping Ar text
2913 if triggered by the
2914 .Cm :ping
2915 command.
2917 .Ss GtkSpinButton
2918 .Bl -tag -width "commands "
2919 .It Commands
2920 .Qq Ar id Ns Cm :set_text Ar string
2921 sets the selected value to
2922 .Ar string .
2924 .Qq Ar id Ns Cm :set_range Ar min max
2925 changes the range.
2927 .Qq Ar id Ns Cm :set_increments Ar step page
2928 sets the steps the value changes while pressing arrow keys/left mouse
2929 button, and
2930 .Ql Page_Up Ns
2931 .Pf / Ql Page_Down Ns
2932 /middle mouse button,
2933 respectively.
2935 .Qq Ar id Ns Cm :grab_focus
2936 puts the keyboard focus onto the button.
2938 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2939 makes the button grayed out
2940 .Pq Cm 0
2941 or responsive
2942 .Pq Cm 1 .
2944 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2945 hides
2946 .Pq Cm 0
2947 the button, or makes it visible
2948 .Pq Cm 1 .
2950 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2951 blocks
2952 .Pq Cm 1
2953 or unblocks
2954 .Pq Cm 0
2955 feedback messages.
2956 Initially, the button is unblocked.
2958 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2959 sets the button's tooltip.
2960 Default is disabling the tooltip.
2962 .Qq Ar id Ns Cm :force
2963 simulates fresh selection of the current value
2965 .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
2966 writes a snapshot of the button to an image file of the specified
2967 type.
2969 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2970 sets the button's minimum size to
2971 .Ar width
2973 .Ar height .
2974 Default is the widget's natural size.
2977 .Ar id Ns Cm :style
2978 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2980 sets the button's style.
2982 .Sx Style .
2984 .Qq Ar id Ns Cm :ping Bq Ar text
2985 triggers a feedback message.
2986 .It Feedback
2987 .Qq Ar id Ns Cm \&:text Ar text
2989 .Qq Ar id Ns Cm :ping Ar text
2990 if triggered by the
2991 .Cm :ping
2992 command.
2994 .Ss GtkSpinner
2995 .Bl -tag -width "commands "
2996 .It Commands
2997 .Qq Ar id Ns Cm :start
2999 .Qq Ar id Ns Cm :stop
3000 start and stop the spinner.
3002 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3003 makes the spinner grayed out
3004 .Pq Cm 0
3005 or clearly visible
3006 .Pq Cm 1 .
3008 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3009 hides
3010 .Pq Cm 0
3011 the spinner, or makes it visible
3012 .Pq Cm 1 .
3014 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3015 sets the spinner's tooltip.
3016 Default is disabling the tooltip.
3018 .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
3019 writes a snapshot of the spinner to an image file of the specified
3020 type.
3022 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3023 sets the spinner's minimum size to
3024 .Ar width
3026 .Ar height .
3027 Default is the natural size.
3030 .Ar id Ns Cm :style
3031 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3033 sets the style.
3035 .Sx Style .
3037 .Qq Ar id Ns Cm :ping Bq Ar text
3038 triggers a feedback message.
3039 .It Feedback
3040 .Qq Ar id Ns Cm :ping Ar text
3041 if triggered by the
3042 .Cm :ping
3043 command.
3045 .Ss GtkStatusbar
3046 The context parameter
3047 .Ar c
3048 is an arbitrary non-whitespace string.
3049 .Bl -tag -width "commands "
3050 .It Commands
3051 .Qq Ar id Ns Cm :push_id Ar c string ,
3052 .Qq Ar id Ns Cm :push Ar string
3053 associate
3054 .Ar string
3055 with context parameter
3056 .Ar c
3058 .Ql 0 ,
3059 respectively, and display it in the statusbar.
3061 .Qq Ar id Ns Cm :pop_id Ar c ,
3062 .Qq Ar id Ns Cm :pop
3063 remove the latest entry associated with context parameter
3064 .Ar c
3066 .Ql 0 ,
3067 respectively, from the statusbar.
3069 .Qq Ar id Ns Cm :remove_all_id Ar c ,
3070 .Qq Ar id Ns Cm :remove_all
3071 remove the entries associated with context parameter
3072 .Ar c
3074 .Ql 0 ,
3075 respectively, from the statusbar.
3077 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3078 makes the statusbar grayed out
3079 .Pq Cm 0
3080 or clearly visible
3081 .Pq Cm 1 .
3083 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3084 hides
3085 .Pq Cm 0
3086 the statusbar, or makes it visible
3087 .Pq Cm 1 .
3089 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3090 sets the statusbar's tooltip.
3091 Default is disabling the tooltip.
3093 .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
3094 writes a snapshot of the statusbar to an image file of the specified
3095 type.
3097 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3098 sets the statusbar's minimum size to
3099 .Ar width
3101 .Ar height .
3102 Default is the natural size.
3105 .Ar id Ns Cm :style
3106 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3108 sets the statusbar's style.
3110 .Sx Style .
3112 .Qq Ar id Ns Cm :ping Bq Ar text
3113 triggers a feedback message.
3114 .It Feedback
3115 .Qq Ar id Ns Cm :ping Ar text
3116 if triggered by the
3117 .Cm :ping
3118 command.
3120 .Ss GtkSwitch
3121 .Bl -tag -width "commands "
3122 .It Commands
3123 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3124 turns the switch off
3125 .Pq Cm 0
3126 or on
3127 .Pq Cm 1 .
3129 .Qq Ar id Ns Cm :grab_focus
3130 puts the keyboard focus onto the switch.
3132 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3133 makes the switch grayed out
3134 .Pq Cm 0
3135 or responsive
3136 .Pq Cm 1 .
3138 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3139 hides
3140 .Pq Cm 0
3141 the switch, or makes it visible
3142 .Pq Cm 1 .
3144 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3145 blocks
3146 .Pq Cm 1
3147 or unblocks
3148 .Pq Cm 0
3149 feedback messages.
3150 Initially, the switch is unblocked.
3152 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3153 sets the tooltip of the switch.
3154 Default is disabling the tooltip.
3156 .Qq Ar id Ns Cm :force
3157 simulates a click on the switch.
3159 .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
3160 writes a snapshot of the switch to an image file of the specified
3161 type.
3163 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3164 sets the switch's minimum size to
3165 .Ar width
3167 .Ar height .
3168 Default is the natural size.
3171 .Ar id Ns Cm :style
3172 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3174 sets the style.
3176 .Sx Style .
3178 .Qq Ar id Ns Cm :ping Bq Ar text
3179 triggers a feedback message.
3180 .It Feedback
3181 .Qq Ar id Ns Cm \&:1
3182 if switched on, or
3183 .Qq Ar id Ns Cm \&:0
3184 otherwise.
3186 .Qq Ar id Ns Cm :ping Ar text
3187 if triggered by the
3188 .Cm :ping
3189 command.
3191 .Ss GtkTextView
3192 There should be a dedicated
3193 .Sx GtkButton
3194 for sending (parts of) the text.
3195 If the id of the
3196 .Cm GtkTextView
3198 .Ar foo ,
3200 .Sx GtkButton
3201 with id
3202 .Ar foo Ns Cm _send_text
3203 will send the content of the
3204 .Cm GtkTextView ;
3206 .Sx GtkButton
3207 with id
3208 .Ar foo Ns Cm _send_selection
3209 will send the highlighted part the
3210 .Cm GtkTextView .
3211 .Bl -tag -width "commands "
3212 .It Commands
3213 .Qq Ar id Ns Cm :set_text Ar string
3214 replaces the user-editable text with (potentially empty)
3215 .Ar string Ns .
3217 .Qq Ar id Ns Cm :delete
3218 deletes the text.
3220 .Qq Ar id Ns Cm :insert_at_cursor Ar string
3221 inserts
3222 .Ar string
3223 at cursor position.
3225 .Qq Ar id Ns Cm :place_cursor Brq Ar position | Cm end
3226 places the text cursor at
3227 .Ar position
3228 or at the end of the text.
3230 .Qq Ar id Ns Cm :place_cursor_at_line Ar line
3231 places the text cursor at the beginning of
3232 .Ar line .
3234 .Qq Ar id Ns Cm :scroll_to_cursor
3235 scrolls to the cursor position if necessary.
3237 .Qq Ar id Ns Cm :save Ar file
3238 stores in
3239 .Ar file
3242 command containing the text.
3244 .Qq Ar id Ns Cm :grab_focus
3245 puts the keyboard focus into the textview.
3247 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3248 makes the text view grayed out
3249 .Pq Cm 0
3250 or responsive
3251 .Pq Cm 1 .
3253 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3254 hides
3255 .Pq Cm 0
3256 the text view, or makes it visible
3257 .Pq Cm 1 .
3259 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3260 sets the tooltip of the text view.
3261 Default is disabling the tooltip.
3263 .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
3264 writes a snapshot of the text view to an image file of the specified
3265 type.
3267 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3268 sets the minimum size to
3269 .Ar width
3271 .Ar height .
3272 Default is the natural size.
3275 .Ar id Ns Cm :style
3276 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3278 sets the style.
3280 .Sx Style .
3282 .Qq Ar id Ns Cm :ping Bq Ar text
3283 triggers a feedback message.
3284 .It Feedback
3285 .Qq Ar button_id Ns Cm \&:text Ar text ,
3286 .Ar button_id
3287 being the id of the
3288 .Sx GtkButton .
3289 Line endings in
3290 .Ar text
3291 are replaced by
3292 .Cm \en ,
3293 and backslashes are replaced by
3294 .Cm \e\e .
3296 .Qq Ar id Ns Cm :ping Ar text
3297 if triggered by the
3298 .Cm :ping
3299 command.
3301 .Ss GtkToggleButton
3302 .Bl -tag -width "commands "
3303 .It Commands
3304 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3305 switches the button off
3306 .Pq Cm 0
3307 or on
3308 .Pq Cm 1 .
3310 .Qq Ar id Ns Cm :set_label Ar string
3311 replaces the button text with
3312 .Ar string .
3314 .Qq Ar id Ns Cm :grab_focus
3315 puts the keyboard focus onto the button.
3317 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3318 makes the button grayed out
3319 .Pq Cm 0
3320 or responsive
3321 .Pq Cm 1 .
3323 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3324 hides
3325 .Pq Cm 0
3326 the button, or makes it visible
3327 .Pq Cm 1 .
3329 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3330 blocks
3331 .Pq Cm 1
3332 or unblocks
3333 .Pq Cm 0
3334 feedback messages.
3335 Initially, the button is unblocked.
3337 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3338 sets the button's tooltip.
3339 Default is disabling the tooltip.
3341 .Qq Ar id Ns Cm :force
3342 simulates a click on the button.
3344 .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
3345 writes a snapshot of the button to an image file of the specified
3346 type.
3348 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3349 sets the button's minimum size to
3350 .Ar width
3352 .Ar height .
3353 Default is the button's natural size.
3356 .Ar id Ns Cm :style
3357 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3359 sets the button's style.
3361 .Sx Style .
3363 .Qq Ar id Ns Cm :ping Bq Ar text
3364 triggers a feedback message.
3365 .It Feedback
3366 .Qq Ar id Ns Cm \&:1
3367 if switched on, or
3368 .Qq Ar id Ns Cm \&:0
3369 otherwise.
3371 .Qq Ar id Ns Cm :ping Ar text
3372 if triggered by the
3373 .Cm :ping
3374 command.
3376 .Ss GtkTreeView
3378 can deal with columns of type
3379 .Cm gboolean , gint , guint , glong , gulong , gint64 , guint64 , gfloat , gdouble ,
3381 .Cm gchararray .
3383 .Ar row
3385 .Ar column
3386 refer to the underlying model
3387 .Cm ( GtkListStore
3389 .Cm GtkTreeStore ) .
3390 .Ar row
3391 is a sequence of one or more colon-separated integers, e.g.
3392 .Ql 3
3394 .Ql 0:0:1 .
3395 .Bl -tag -width "commands "
3396 .It Commands
3397 .Qq Ar id Ns Cm :set Ar row column data
3398 replaces the content at
3399 .Pq Ar row , column
3400 with
3401 .Ar data
3402 (which should be compatible with the type of
3403 .Ar column ) .
3404 If necessary, new tree nodes are created to obtain the minimal tree
3405 structure needed to support
3406 .Ar row .
3408 .Qq Ar id Ns Cm :insert_row Brq Ar row Bo Cm as_child Bc | Cm end
3409 inserts a new, empty row; either as a sibling of
3410 .Ar row
3411 at position
3412 .Ar row ,
3413 or as a child of
3414 .Ar row ,
3415 or at the end of the list, respectively.
3417 .Qq Ar id Ns Cm :move_row Ar origin Brq Ar destination | Cm end
3418 moves the row at
3419 .Ar origin
3420 within its current level to
3421 .Ar destination
3422 or to the end.
3424 .Qq Ar id Ns Cm :remove_row Ar row
3425 removes the row at position
3426 .Ar row .
3428 .Qq Ar id Ns Cm :clear
3429 removes all rows.
3431 .Qq Ar id Ns Cm :expand Ar row
3432 expands one level of the subtree below
3433 .Ar row .
3435 .Qq Ar id Ns Cm :expand_all Bq Ar row
3436 expands the subtree below
3437 .Ar row ,
3438 or the whole tree.
3440 .Qq Ar id Ns Cm :collapse Bq Ar row
3441 collapses the subtree below
3442 .Ar row ,
3443 or the whole tree.
3445 .Qq Ar id Ns Cm :set_cursor Bq Ar row
3446 sets the cursor to
3447 .Ar row ,
3448 or unsets it.
3450 .Qq Ar id Ns Cm :scroll Ar row column
3451 scrolls the cell at
3452 .Pq Ar row , column
3453 into view.
3455 .Qq Ar id Ns Cm :save Ar file
3456 stores the content of the underlying model as a sequence of
3458 commands into
3459 .Ar file .
3461 .Qq Ar id Ns Cm :grab_focus
3462 puts the keyboard focus onto the tree view.
3464 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3465 makes the tree view grayed out
3466 .Pq Cm 0
3467 or responsive
3468 .Pq Cm 1 .
3470 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3471 hides
3472 .Pq Cm 0
3473 the tree view, or makes it visible
3474 .Pq Cm 1 .
3476 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3477 blocks
3478 .Pq Cm 1
3479 or unblocks
3480 .Pq Cm 0
3481 feedback messages.
3482 Initially, the widget is unblocked.
3484 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3485 sets the tooltip of the tree view.
3486 Default is disabling the tooltip.
3488 .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
3489 writes a snapshot of the tree view to an image file of the specified
3490 type.
3492 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3493 sets the minimum size of the tree view to
3494 .Ar width
3496 .Ar height .
3497 Default is the widget's natural size.
3500 .Ar id Ns Cm :style
3501 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3503 sets the style.
3505 .Sx Style .
3507 .Qq Ar id Ns Cm :ping Bq Ar text
3508 triggers a feedback message.
3509 .It Feedback
3510 .Qq Ar id Ns Cm \&:clicked
3512 .Qq Ar id Ns Cm \&: Ns Ar column_type row column value ,
3513 one message per cell in the underlying model for each selected row; or
3515 .Qq Ar id Ns Cm \&: Ns Ar column_type row column new_value ,
3516 if the cell at
3517 .Pq Ar row , column
3518 has been edited.
3520 .Qq Ar id Ns Cm :ping Ar text
3521 if triggered by the
3522 .Cm :ping
3523 command.
3525 .Ss GtkTreeViewColumn
3526 .Bl -tag -width "commands "
3527 .It Commands
3528 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3529 blocks
3530 .Pq Cm 1
3531 or unblocks
3532 .Pq Cm 0
3533 feedback messages.
3534 Initially, the widget is unblocked.
3536 .Qq Ar id Ns Cm :ping Bq Ar text
3537 triggers a feedback message.
3538 .It Feedback
3539 .Qq Ar id Ns Cm \&:clicked
3541 .Qq Ar id Ns Cm :ping Ar text
3542 if triggered by the
3543 .Cm :ping
3544 command.
3546 .Ss GtkViewport
3547 .Bl -tag -width "commands "
3548 .It Commands
3549 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3550 makes the viewport insensitive
3551 .Pq Cm 0
3552 or responsive
3553 .Pq Cm 1 .
3555 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3556 hides
3557 .Pq Cm 0
3558 the viewport, or makes it visible
3559 .Pq Cm 1 .
3561 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3562 sets the tooltip of the viewport.
3563 Default is disabling the tooltip.
3565 .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
3566 writes a snapshot of the viewport to an image file of the specified
3567 type.
3569 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3570 sets the minimum size to
3571 .Ar width
3573 .Ar height .
3574 Default is the natural size of the viewport.
3577 .Ar id Ns Cm :style
3578 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3580 sets the widget style.
3582 .Sx Style .
3584 .Qq Ar id Ns Cm :ping Bq Ar text
3585 triggers a feedback message.
3586 .It Feedback
3587 .Qq Ar id Ns Cm :ping Ar text
3588 if triggered by the
3589 .Cm :ping
3590 command.
3592 .Ss GtkWindow
3593 .Bl -tag -width "commands "
3594 .It Commands
3595 .Qq Ar id Ns Cm :set_title Ar string
3596 replaces the text in the title bar with
3597 .Ar string .
3599 .Qq Ar id Ns Cm :resize Bq Ar width height
3600 changes the window size to
3601 .Ar width
3603 .Ar height
3604 pixels if specified, or to the default size.
3606 .Qq Ar id Ns Cm :move Ar x y
3607 moves the window to position
3608 .Pq Ar x , y .
3610 .Qq Ar id Ns Cm :fullscreen
3612 .Qq Ar id Ns Cm :unfullscreen
3613 switch fullscreen mode on and off.
3615 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3616 makes the widget grayed out
3617 .Pq Cm 0
3618 or responsive
3619 .Pq Cm 1 .
3621 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3622 hides
3623 .Pq Cm 0
3624 the widget, or makes it visible
3625 .Pq Cm 1 .
3627 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3628 blocks
3629 .Pq Cm 1
3630 or unblocks
3631 .Pq Cm 0
3632 feedback messages.
3633 Initially, the widget is unblocked.
3635 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3636 sets the window's tooltip.
3637 Default is disabling the tooltip.
3638 .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
3639 writes a snapshot of the window to an image file of the specified
3640 type.
3642 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3643 sets the window's minimum size to
3644 .Ar width
3646 .Ar height .
3647 Default is the widget's natural size.
3650 .Ar id Ns Cm :style
3651 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3653 sets the style.
3655 .Sx Style .
3657 .Qq Ar id Ns Cm :ping Bq Ar text
3658 triggers a feedback message.
3659 .It Feedback
3660 .Qq Ar id Ns Cm \&:closed
3661 if the
3662 .Cm GtkWindow
3663 was closed by the window manager.
3665 .Qq Ar id Ns Cm :ping Ar text
3666 if triggered by the
3667 .Cm :ping
3668 command.
3670 .Sh SPECIAL SYNTAX
3671 .Ss Style
3673 .Ar id Ns Cm :style
3674 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3676 sets properties
3677 .Ar prop
3678 of the widget style to
3679 .Ar val .
3680 Properties not explicitly specified are reset to their default values.
3681 Examples:
3682 .Bl -dash -offset indent -compact
3684 .Ql label1:style font:Bold 11; background-color:green
3686 .Ql label1:style font-style:italic; font-weight:bold; color:blue
3688 .Ql button1:style background-image:url("q.png")
3690 .Ql treeview1:style background-image:linear-gradient(45deg, yellow, blue);
3692 .Ql frame1:style border-color:red yellow; border-width:5px
3694 .Ql frame1:style border-radius:10px; transition:10s
3696 For color notations see
3697 .Sx Color ,
3698 below.
3699 .Ss Color
3700 Possible
3701 .Ar color
3702 notations:
3703 .Bl -dash -offset indent -compact
3705 standard X11 colors names like
3706 .Ql blue ,
3707 .Ql Dark Sea Green ,
3709 .Ql Red ;
3711 .Ql transparent ;
3713 hexadecimal values in the form
3714 .Cm # Ns Ar rgb , Cm # Ns Ar rrggbb , Cm # Ns Ar rrrgggbbb ,
3716 .Cm # Ns Ar rrrrggggbbbb ;
3718 RGB colors in the form
3719 .Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
3721 RGBA colors in the form
3722 .Cm rgba( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns
3723 .Ar blue Ns Cm \&, Ns Ar alpha Ns Cm \&) ;
3724 .Ar red , green , blue
3725 between 0 and 255 and
3726 .Ar alpha
3727 between 0 and 1;
3729 color expressions like
3730 .Ql darker(blue)
3732 .Ql lighter(currentColor) .
3734 .Sh EXIT STATUS
3735 .Ex -std
3736 .Sh EXAMPLES
3737 .Ss Discovering Pipeglade Interactively
3738 Suppose the interface in
3739 .Pa ./pipeglade.ui
3740 has a
3741 .Sx GtkLabel Ql label1
3742 and a
3743 .Sx GtkButton Ql button1 .
3744 After invoking
3746 .Dl pipeglade
3748 and clicking the
3749 .Sx GtkButton , Ql button1:clicked
3750 will be reported on the terminal.
3751 Typing
3753 .Dl label1:set_text The Button
3755 will change the text shown on the label into
3756 .Ql The Button .
3757 .Ss One-Shot File Dialog
3758 Suppose the interface in
3759 .Pa ./simple_open.ui
3760 contains a
3761 .Sx GtkFileChooserDialog
3762 with an
3763 .Sq OK
3764 .Sx GtkButton
3765 whose id is
3766 .Ql main_ok .
3767 Invoking
3769 .Dl pipeglade -u simple_open.ui
3771 will open the dialog; pressing
3772 .Sq OK
3773 will close it after sending the selected filename to
3774 .Va stdout .
3775 .Ss One-Shot User Notification
3776 If the interface in
3777 .Pa ./simple_dialog.ui
3778 contains a
3779 .Sx GtkLabel Ql label1 ,
3780 then
3781 .Bd -literal -offset indent
3782 pipeglade -u simple_dialog.ui <<< \e
3783     "label1:set_text NOW READ THIS!"
3785 will set the label text accordingly and wait for user input.
3786 .Ss Continuous Input
3787 The following shell command displays a running clock:
3788 .Bd -literal -offset indent
3789 while true; do
3790     echo "label1:set_text `date`";
3791     sleep 1;
3792 done | pipeglade -u simple_dialog.ui
3794 .Ss Continuous Input and Output
3795 The following shell script fragment sets up
3797 for continuous communication with another program,
3798 .Pa main_prog :
3799 .Bd -literal -offset indent
3800 pipeglade -i in.fifo -o out.fifo -b
3801 main_prog <out.fifo >in.fifo
3803 .Sh SEE ALSO
3804 .Xr dialog 1 ,
3805 .Xr glade 1 ,
3806 .Xr gxmessage 1 ,
3807 .Xr kdialog 1 ,
3808 .Xr whiptail 1 ,
3809 .Xr xmessage 1 ,
3810 .Xr zenity 1
3811 .Sh AUTHOR
3813 was written by
3814 .An Bert Burgemeister
3815 .Aq Mt trebbu@googlemail.com .
3816 .Sh BUGS
3817 Due to what appears to be a bug in cairo v1.14.0,
3819 used with this library version occasionally crashes on
3820 .Cm GtkDrawingArea
3821 commands.