1 .\" Copyright (c) 2014-2017 Bert Burgemeister <trebbu@googlemail.com>
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:
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
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.
27 .Nd pipe-driven GTK+ interface
34 .Op Fl u Ar builder-file
35 .Op Fl e Ar parent-xid
38 .Op Fl -display Ar X-server
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
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
52 Simple one-shot dialogs as well as more complex, long-running programs
62 if necessary, sets its permissions to
64 and uses it for command input.
66 A command is a line of text.
68 .Qq Ar id Ns Cm \&: Ns Ar action Bq Ar data ,
70 being the name of the receiving widget;
72 is separated from the rest of the command by a single whitespace
74 Commands whose first non-whitespace character is
76 are considered comments and ignored silently, as are empty input lines.
77 Any occurences of the two-character sequences
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
86 and are otherwise ignored.
89 for applicable commands.
93 exists but is not a named pipe.
96 is deleted upon successful program termination.
98 Default command input is
103 if necessary, sets its permissions to
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 ,
111 being the name of the sending widget.
114 for possible feedback messages.
118 exists but is not a named pipe.
121 is deleted upon successful program termination.
123 Default feedback-message output is
128 in the background after printing its process ID to
131 It is an error if option
138 .It Fl u Ar builder-file
139 Displays the graphical user interface
141 which should be created using the
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
151 .It Fl e Ar parent-xid
152 Embeds the main window into the XEmbed socket
156 Appends for each command a line of
161 being the number of microseconds elapsed during
166 are separated by a tab character.
180 appending its output to
186 .It Fl -display Ar X-server
189 for user interaction.
191 Prints a help message and exits.
193 Prints the versions of the underlying GTK+ and cairo libraries and
201 The widget classes able to communicate through
212 .Sx GtkComboBoxText ,
218 .Sx GtkFileChooserButton ,
219 .Sx GtkFileChooserDialog ,
224 .Sx GtkImageMenuItem ,
236 .Sx GtkPrintUnixDialog ,
240 .Sx GtkScrolledWindow ,
242 .Sx GtkSeparatorMenuItem ,
250 .Sx GtkToggleButton ,
252 .Sx GtkTreeViewColumn ,
259 references a widget by the
261 attribute it is given in Glade.
269 .Dl <object class="GtkWindow" id="foo"> .
271 .\" Commands most widgets understand:
284 .Ss Unspecific Widget
285 .Bl -tag -width indent
289 .Qq Ar id Ns Cm :load Ar file
296 is required but ignored.
298 commands may be nested but on attempts to read from the same file, the
309 .Qq Ar id Ns Cm :main_quit
310 kills the user interface.
313 is required but ignored.
317 .Bl -tag -width indent
321 .Qq Ar id Ns Cm :set_label Ar text
322 replaces the frame label text with
325 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
326 makes the frame and its content grayed out
331 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
334 the frame, or makes it visible
337 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
338 sets the frame's tooltip.
339 Default is disabling the tooltip.
341 .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
342 writes a snapshot of the frame to an image file of the specified
345 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
346 sets the widget's minimum size to
350 Default is the frame's natural size.
354 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
360 .Qq Ar id Ns Cm :ping Bq Ar text
361 triggers a feedback message.
366 .Qq Ar id Ns Cm :ping Ar text
373 .Bl -tag -width indent
377 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
378 makes the box grayed out
383 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
386 the box, or makes it visible
388 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
389 sets the box's tooltip.
390 Default is disabling the tooltip.
392 .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
393 writes a snapshot of the box to an image file of the specified
396 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
397 sets the box's minimum size to
401 Default is the box's natural size.
405 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
411 .Qq Ar id Ns Cm :ping Bq Ar text
412 triggers a feedback message.
417 .Qq Ar id Ns Cm :ping Ar text
424 .Bl -tag -width indent
428 .Qq Ar id Ns Cm :set_label Ar string
429 replaces the button text with
432 .Qq Ar id Ns Cm :grab_focus
433 puts the keyboard focus onto the button.
435 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
436 makes the button grayed out
441 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
444 the button, or makes it visible
447 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
453 Initially, the button is unblocked.
455 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
456 sets the button's tooltip.
457 Default is disabling the tooltip.
459 .Qq Ar id Ns Cm :force
460 simulates a click on the button.
462 .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
463 writes a snapshot of the button to an image file of the specified
466 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
467 sets the button's minimum size to
471 Default is the button's natural size.
475 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
481 .Qq Ar id Ns Cm :ping Bq Ar text
482 triggers a feedback message.
487 .Qq Ar id Ns Cm :ping Ar text
492 .Qq Ar id Ns Cm \&:clicked
496 .Cm _ok , _apply , _cancel , _send_text ,
499 may work differently; see
500 .Sx GtkDialog , GtkFileChooserDialog ,
505 .Qq Ar id Ns Cm :ping Ar text
512 .Bl -tag -width indent
516 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
517 makes the box grayed out
522 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
525 the box, or makes it visible
528 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
529 sets the box's tooltip.
530 Default is disabling the tooltip.
532 .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
533 writes a snapshot of the box to an image file of the specified
536 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
537 sets the box's minimum size to
541 Default is the box's natural size.
545 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
551 .Qq Ar id Ns Cm :ping Bq Ar text
552 triggers a feedback message.
557 .Qq Ar id Ns Cm :ping Ar text
564 .Bl -tag -width indent
568 .Qq Ar id Ns Cm :select_date Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
569 selects the date on the calendar.
571 .Qq Ar id Ns Cm :mark_day Ar day
576 .Qq Ar id Ns Cm :clear_marks
577 unmarks all days on the calendar.
579 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
580 makes the calendar grayed out
585 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
588 the calendar, or makes it visible
591 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
597 Initially, the calendar is unblocked.
599 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
600 sets the calendar's tooltip.
601 Default is disabling the tooltip.
603 .Qq Ar id Ns Cm :force
604 simulates a click on the currently selected date.
606 .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
607 writes a snapshot of the calendar to an image file of the specified
610 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
611 sets the calendar's minimum size to
615 Default is the widget's natural size.
619 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
621 sets the calendar's style.
625 .Qq Ar id Ns Cm :ping Bq Ar text
626 triggers a feedback message.
631 .Qq Ar id Ns Cm \&:clicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
633 .Qq Ar id Ns Cm \&:doubleclicked Ar yyyy Ns Cm - Ns Ar mm Ns Cm - Ns Ar dd
635 .Qq Ar id Ns Cm :ping Ar text
642 .Bl -tag -width indent
646 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
647 switches the check mark off
652 .Qq Ar id Ns Cm :set_label Ar string
653 replaces the button text with
656 .Qq Ar id Ns Cm :grab_focus
657 puts the keyboard focus onto the button.
659 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
660 makes the button grayed out
665 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
668 the button, or makes it visible
671 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
677 Initially, the button is unblocked.
679 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
680 sets the button's tooltip.
681 Default is disabling the tooltip.
683 .Qq Ar id Ns Cm :force
684 simulates a click on the button.
686 .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
687 writes a snapshot of the button to an image file of the specified
690 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
691 sets the button's minimum size to
695 Default is the widget's natural size.
699 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
701 sets the button's style.
705 .Qq Ar id Ns Cm :ping Bq Ar text
706 triggers a feedback message.
716 .Qq Ar id Ns Cm :ping Ar text
723 .Bl -tag -width indent
727 .Qq Ar id Ns Cm :set_color Ar color
728 preselects the color; see
731 .Qq Ar id Ns Cm :grab_focus
732 puts the keyboard focus onto the button.
734 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
735 makes the button grayed out
740 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
743 the button, or makes it visible
746 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
752 Initially, the button is unblocked.
754 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
755 sets the button's tooltip.
756 Default is disabling the tooltip.
758 .Qq Ar id Ns Cm :force
759 opens the dialog window.
761 .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
762 writes a snapshot of the button to an image file of the specified
765 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
766 sets the button's minimum size to
770 Default is the widget's natural size.
774 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
776 sets the button's style.
780 .Qq Ar id Ns Cm :ping Bq Ar text
781 triggers a feedback message.
786 .Qq Ar id Ns Cm \&:color Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
788 .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 \&) .
792 lie between 0 and 255, and
796 .Qq Ar id Ns Cm :ping Ar text
807 .Bl -tag -width indent
811 .Qq Ar id Ns Cm :prepend_text Ar string
813 .Qq Ar id Ns Cm :append_text Ar string
814 prepend/append a new selectable item marked
817 .Qq Ar id Ns Cm :insert_text Ar position string
823 .Qq Ar id Ns Cm :remove Ar position
827 .Qq Ar id Ns Cm :grab_focus
828 puts the keyboard focus onto the combo box.
830 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
831 makes the combo box grayed out
836 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
839 the combo box, or makes it visible
842 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
848 Initially, the combo box is unblocked.
850 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
852 Default is disabling the tooltip.
854 .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
855 writes a snapshot of the combo box to an image file of the specified
858 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
859 sets the combo box's minimum size to
863 Default is the natural size.
867 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
873 .Qq Ar id Ns Cm :ping Bq Ar text
874 triggers a feedback message.
879 .Qq Ar entry_id Ns Cm \&:text Ar text ,
881 being the id of the child
884 .Qq Ar id Ns Cm :ping Ar text
900 .Ar foo Ns Cm _invoke .
908 .Ar foo Ns Cm _cancel
910 if the dialog is the sole window of the GUI and therefore named
921 it will take care of hiding the dialog window.
922 .Bl -tag -width indent
926 .Qq Ar id Ns Cm :set_title Ar string
927 replaces the text in the title bar with
930 .Qq Ar id Ns Cm :resize Bq Ar width height
931 changes the size of the dialog window to
935 pixels if specified, or to the default size.
937 .Qq Ar id Ns Cm :move Ar x y
938 moves the dialog window to position
941 .Qq Ar id Ns Cm :fullscreen
943 .Qq Ar id Ns Cm :unfullscreen
944 switch fullscreen mode on and off.
946 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
947 makes the dialog grayed out
952 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
955 the dialog, or makes it visible
958 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
963 feedback messages from the dialog window.
964 Initially, the window is unblocked.
966 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
967 sets the dialog window's tooltip.
968 Default is disabling the tooltip.
970 .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
971 writes a snapshot of the dialog window to an image file of the
974 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
975 sets the dialog window's minimum size to
979 Default is its natural size.
983 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
985 sets the dialog window's style.
989 .Qq Ar id Ns Cm :ping Bq Ar text
990 triggers a feedback message.
995 .Qq Ar id Ns Cm \&:closed
998 window was closed by the window manager.
1000 .Qq Ar id Ns Cm :ping Ar text
1008 expect a context parameter of the form
1009 .Bro Ar n Ns | Ns Cm = Ns Ar n Ns | Ns Ar n Ns Cm < Ns Ar m Brc
1012 is an arbitrary non-negative integer that can be used later to
1013 reference the command.
1016 appends its command to the current list of drawing operations.
1019 replaces the first drawing operation with context parameter
1023 .Ar n Ns Cm < Ns Ar m ,
1024 inserts its command before the first drawing operation with context
1027 Both second and third form fall back to appending.
1029 The default coordinate system is a left-handed system with its origin
1030 in the upper-left corner.
1031 Angles increase from the positive X axis towards the positve Y axis
1032 .Pq clockwise in the default system .
1033 .Bl -tag -width indent
1037 .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
1038 adds a circular arc to the current path.
1039 The arc is centered at
1047 .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
1048 adds a circular arc to the current path.
1049 The arc is centered at
1051 and proceeds in the direction of decreasing angles from
1057 .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
1058 adds a line segment from the current point to the point most recently
1060 .Ar id Ns Cm :move_to
1062 .Ar id Ns Cm :rel_move_to .
1064 .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
1065 adds a cubic Bezier spline from the current point to
1072 If there is no current point, the curve will start at
1075 .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
1076 fills the current path and clears it.
1078 .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
1079 fills the current path without clearing it.
1081 .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
1082 adds a line from the current point to
1084 or creates a new current point at
1087 .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
1088 sets the current point to
1091 .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
1092 adds a rectangle to the current path.
1093 The top left corner is at
1096 .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
1097 adds a cubic Bezier spline from the current point to
1104 All coordinates are offsets relative to the current point.
1106 .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
1107 adds a line from the current point to a point offset from there by
1110 .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
1111 .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
1114 moves the current point such that
1115 .Qq Ar id Ns Cm :show_text Ar n text
1116 will place the specified reference point of
1118 on the original current point.
1120 .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
1121 moves the current point by
1124 .Qq Ar id Ns Cm :remove Ar n
1125 removes the elements with context parameter
1128 .Cm GtkDrawingArea Ar id .
1130 .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
1131 rotates the user space axes by
1135 .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
1136 scales the user space axes by
1139 .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
1140 sets the dash pattern to
1146 .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 ...
1147 resets the dash pattern to a line with arbitrary on/off portions.
1149 .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
1150 resets the dash pattern to a solid line.
1152 .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
1153 .Brq Cm normal | italic | oblique
1154 .Brq Cm normal | bold
1157 sets the font face for subsequent calls of
1158 .Ar id Ns Cm :show_text .
1160 .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
1161 sets the font size for subsequent calls of
1162 .Ar id Ns Cm :show_text .
1164 .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
1165 sets the line cap style.
1169 .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
1170 sets the line junction style.
1174 .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
1175 sets the line width.
1180 .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
1184 .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
1187 beginning at the current point.
1189 .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
1190 strokes the current path and clears it.
1192 .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
1193 strokes the current path without clearing it.
1195 .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
1196 modifies the current transformation matrix such that
1198 .Dl Va x' Li = Ar xx Va x Li + Ar xy Va y Li + Ar x0 ,
1199 .Dl Va y' Li = Ar yx Va y Li + Ar yy Va y Li + Ar y0 .
1201 Default is resetting the current transformation matrix.
1203 .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
1204 translates the user space origin by
1207 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1210 the drawing area, or makes it visible
1213 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1214 sets the drawing area's tooltip.
1215 Default is disabling the tooltip.
1217 .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
1218 writes a snapshot of the drawing area to an image file of the specified
1221 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1222 sets the drawing areas's minimum size to
1226 Default is the natural size.
1228 .Qq Ar id Ns Cm :ping Bq Ar text
1229 triggers a feedback message.
1234 .Qq Ar id Ns Cm :ping Ar text
1241 .Bl -tag -width indent
1245 .Qq Ar id Ns Cm :set_text Ar string
1246 replaces the user-editable text with
1249 .Qq Ar id Ns Cm :set_placeholder_text Ar string
1252 that is displayed when the entry is empty and unfocused.
1254 .Qq Ar id Ns Cm :grab_focus
1255 puts the keyboard focus into the entry.
1257 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1258 makes the entry grayed out
1263 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1266 the entry, or makes it visible
1269 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1275 Initially, the entry is unblocked.
1277 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1278 sets the entry's tooltip.
1279 Default is disabling the tooltip.
1281 .Qq Ar id Ns Cm :force
1282 lets the entry report its current content.
1284 .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
1285 writes a snapshot of the entry to an image file of the specified
1288 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1289 sets the entry's minimum size to
1293 Default is the entry's natural size.
1297 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1303 .Qq Ar id Ns Cm :ping Bq Ar text
1304 triggers a feedback message.
1309 .Qq Ar id Ns Cm \&:text Ar text ,
1310 once for each change of
1313 .Qq Ar id Ns Cm :ping Ar text
1321 are mouse pointer coordinates relative to the
1323 .Bl -tag -width indent
1327 .Qq Ar id Ns Cm :grab_focus
1328 puts the keyboard focus onto the event box.
1330 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1331 makes the event box insensitive
1336 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1342 Initially, the event box is unblocked.
1344 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1345 sets the tooltip of the event box.
1346 Default is disabling the tooltip.
1348 .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
1349 writes a snapshot of the event box to an image file of the specified
1352 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1353 sets the minimum size to
1357 Default is the natural size of the event box.
1361 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1363 sets the widget style.
1367 .Qq Ar id Ns Cm :ping Bq Ar text
1368 triggers a feedback message.
1373 .Qq Ar id Ns Cm \&:button_press Ar b x y ,
1374 .Qq Ar id Ns Cm \&:button_release Ar b x y
1377 is the mouse button (normally 1, 2, or 3 for the left, middle, and
1378 right button; others may exist).
1380 .Qq Ar id Ns Cm \&:motion Ar x y
1381 is reported repeatedly while the mouse is being moved with a button
1384 .Qq Ar id Ns Cm \&:key_press Ar key ,
1386 being the key's name
1393 .Qq Ar id Ns Cm :ping Ar text
1400 .Bl -tag -width indent
1404 .Qq Ar id Ns Cm :set_label Ar string
1405 replaces the expander label text with
1408 .Qq Ar id Ns Cm :set_expanded Brq Cm 0 Ns | Ns 1
1411 the child widget, or makes it visible
1414 .Qq Ar id Ns Cm :grab_focus
1415 puts the keyboard focus onto the expander.
1417 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1418 makes the expander grayed out
1423 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1426 the expander, or makes it visible
1429 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1430 sets the expander's tooltip.
1431 Default is disabling the tooltip.
1433 .Qq Ar id Ns Cm :force
1434 toggles the expansion state.
1436 .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
1437 writes a snapshot of the expander to an image file of the specified
1440 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1441 sets the expander's minimum size to
1445 Default is the natural size.
1449 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1455 .Qq Ar id Ns Cm :ping Bq Ar text
1456 triggers a feedback message.
1461 .Qq Ar id Ns Cm :ping Ar text
1468 .Bl -tag -width indent
1472 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1475 the grid, or makes it visible
1478 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1479 sets the grid's tooltip.
1480 Default is disabling the tooltip.
1482 .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
1483 writes a snapshot of the grid to an image file of the specified
1486 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1487 sets the grid's minimum size to
1491 Default is the grid's natural size.
1495 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1501 .Qq Ar id Ns Cm :ping Bq Ar text
1502 triggers a feedback message.
1507 .Qq Ar id Ns Cm :ping Ar text
1513 .Ss GtkFileChooserButton
1514 .Bl -tag -width indent
1518 .Qq Ar id Ns Cm :set_filename Ar path
1521 to the extent it exists.
1523 .Qq Ar id Ns Cm :grab_focus
1524 puts the keyboard focus onto the button.
1526 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1527 makes the button grayed out
1532 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1535 the button, or makes it visible
1538 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1544 Initially, the button is unblocked.
1546 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1547 sets the button's tooltip.
1548 Default is disabling the tooltip.
1550 .Qq Ar id Ns Cm :force
1551 simulates fresh selection of the currently selected pathname.
1553 .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
1554 writes a snapshot of the button to an image file of the specified
1557 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1558 sets the button's minimum size to
1562 Default is the widget's natural size.
1566 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1572 .Qq Ar id Ns Cm :ping Bq Ar text
1573 triggers a feedback message.
1578 .Qq Ar id Ns Cm \&:file Ar pathname
1579 if the selection has changed.
1581 .Qq Ar id Ns Cm :ping Ar text
1587 .Ss GtkFileChooserDialog
1589 .Cm GtkFileChooserDialog
1592 will be invoked by a
1595 .Sx GtkImageMenuItem
1597 .Ar foo Ns Cm _invoke .
1600 .Cm GtkFileChooserDialog
1607 if the dialog is the sole window of the GUI and therefore named
1612 .Cm GtkFileChooserDialog
1617 .Ar foo Ns Cm _cancel
1619 if the dialog is the sole window of the GUI and therefore named
1624 .Cm GtkFileChooserDialog
1629 .Ar foo Ns Cm _apply
1631 if the dialog is the sole window of the GUI and therefore named
1634 .Bl -tag -width indent
1638 .Qq Ar id Ns Cm :set_filename Ar path
1641 to the extent it exists.
1643 .Qq Ar id Ns Cm :set_current_name Ar string
1646 the suggested filename, which may not yet exist.
1648 should either resemble an absolute path, or the
1650 must be set separately by
1651 .Ar id Ns Cm :set_filename Ar directory .
1653 .Qq Ar id Ns Cm :set_title Ar string
1654 replaces the text in the title bar with
1657 .Qq Ar id Ns Cm :resize Bq Ar width height
1658 changes the size of the dialog window to
1662 pixels if specified, or to the default size.
1664 .Qq Ar id Ns Cm :move Ar x y
1665 moves the dialog window to position
1668 .Qq Ar id Ns Cm :fullscreen
1670 .Qq Ar id Ns Cm :unfullscreen
1671 switch fullscreen mode on and off.
1673 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1674 makes the dialog grayed out
1679 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1682 the dialog, or makes it visible
1685 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1690 feedback messages form the dialog window.
1691 Initially, the widget is unblocked.
1693 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1694 sets the dialog window's tooltip.
1695 Default is disabling the tooltip.
1697 .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
1698 writes a snapshot of the widget to an image file of the specified
1701 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1702 sets the widget's minimum size to
1706 Default is the widget's natural size.
1710 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1712 sets the widget style.
1716 .Qq Ar id Ns Cm :ping Bq Ar text
1717 triggers a feedback message.
1722 .Qq Ar id Ns Cm \&:file Ar pathname
1724 .Qq Ar id Ns Cm \&:folder Ar pathname
1726 .Qq Ar id Ns Cm \&:closed
1728 .Cm GtkFileChooserDialog
1729 window was closed by the window manager.
1731 .Qq Ar id Ns Cm :ping Ar text
1738 .Bl -tag -width indent
1742 .Qq Ar id Ns Cm :set_font_name Ar fontname
1743 preselects the font.
1745 .Qq Ar id Ns Cm :grab_focus
1746 puts the keyboard focus onto the button.
1748 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1749 makes the button grayed out
1754 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1757 the button, or makes it visible
1760 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
1766 Initially, the button is unblocked.
1768 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1769 sets the button's tooltip.
1770 Default is disabling the tooltip.
1772 .Qq Ar id Ns Cm :force
1773 opens the dialog window.
1775 .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
1776 writes a snapshot of the button to an image file of the specified
1779 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1780 sets the button's minimum size to
1784 Default is the button's natural size.
1788 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1794 .Qq Ar id Ns Cm :ping Bq Ar text
1795 triggers a feedback message.
1800 .Qq Ar id Ns Cm \&:font Ar fontname
1802 .Qq Ar id Ns Cm :ping Ar text
1809 .Bl -tag -width indent
1813 .Qq Ar id Ns Cm :set_label Ar text
1814 replaces the frame label text with
1817 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1818 makes the frame and its content grayed out
1823 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1826 the frame, or makes it visible
1829 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1830 sets the frame's tooltip.
1831 Default is disabling the tooltip.
1833 .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
1834 writes a snapshot of the frame to an image file of the specified
1837 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1838 sets the widget's minimum size to
1842 Default is the frame's natural size.
1846 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1852 .Qq Ar id Ns Cm :ping Bq Ar text
1853 triggers a feedback message.
1858 .Qq Ar id Ns Cm :ping Ar text
1865 .Bl -tag -width indent
1869 .Qq Ar id Ns Cm :set_from_icon_name Ar icon-name
1870 replaces the image with one of the standard icons.
1872 .Qq Ar id Ns Cm :set_from_file Ar path
1873 replaces the image by the one found at
1876 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1879 the image, or makes it visible
1882 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1883 sets the image's tooltip.
1884 Default is disabling the tooltip.
1886 .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
1887 writes a snapshot of the image to an image file of the specified
1890 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1891 sets the images's minimum size to
1895 Default is the image's natural size.
1899 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1906 .Qq Ar id Ns Cm :ping Bq Ar text
1907 triggers a feedback message.
1911 .Qq Ar id Ns Cm :ping Ar text
1918 .Bl -tag -width indent
1922 .Qq Ar id Ns Cm :popup ,
1923 .Qq Ar id Ns Cm :popdown
1924 displays the menu at mouse position or closes it, respectively.
1926 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1927 makes the menu grayed out
1932 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1933 sets the menu's tooltip.
1934 Default is disabling the tooltip.
1936 .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
1937 writes a snapshot of the (popped-up) menu to an image file of the
1940 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1941 sets the menu's minimum size to
1945 Default is the menu's natural size.
1949 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
1951 sets the menu's style.
1955 .Qq Ar id Ns Cm :ping Bq Ar text
1956 triggers a feedback message.
1961 .Qq Ar id Ns Cm :ping Ar text
1968 .Bl -tag -width indent
1972 .Qq Ar id Ns Cm :grab_focus
1973 puts the keyboard focus onto the button.
1975 .Qq Ar id Ns Cm :force
1976 simulates a click onto the button.
1978 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
1979 makes the button grayed out
1984 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
1987 the button, or makes it visible
1990 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
1991 sets the button's tooltip.
1992 Default is disabling the tooltip.
1994 .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
1995 writes a snapshot of the button to an image file of the specified
1998 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
1999 sets the button's minimum size to
2003 Default is the button's natural size.
2007 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2009 sets the button's style.
2013 .Qq Ar id Ns Cm :ping Bq Ar text
2014 triggers a feedback message.
2019 .Qq Ar id Ns Cm :ping Ar text
2025 .Ss GtkImageMenuItem
2026 .Cm GtkImageMenuItem
2028 .Bl -tag -width indent
2032 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2033 makes the item grayed out
2038 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2041 the item, or makes it visible
2044 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2050 Initially, the item is unblocked.
2052 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2053 sets the item's tooltip.
2054 Default is disabling the tooltip.
2056 .Qq Ar id Ns Cm :force
2057 simulates a click on the menu item.
2059 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2060 sets the item's minimum size to
2064 Default is the item's natural size.
2068 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2070 sets the item's style.
2074 .Qq Ar id Ns Cm :ping Bq Ar text
2075 triggers a feedback message.
2081 .Cm GtkImageMenuItem
2083 .Ar foo Ns Cm _invoke
2087 .Sx GtkFileChooserDialog
2091 If there isn't any dialog attached to the
2092 .Cm GtkImageMenuItem ,
2094 .Qq Ar id Ns Cm \&:active Ar label .
2096 .Qq Ar id Ns Cm :ping Ar text
2103 .Bl -tag -width indent
2107 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2108 makes the info bar grayed out
2113 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2116 the info bar, or makes it visible
2119 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2120 sets the info bar's tooltip.
2121 Default is disabling the tooltip.
2123 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2124 sets the info bar's minimum size to
2128 Default is the info bar's natural size.
2132 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2138 .Qq Ar id Ns Cm :ping Bq Ar text
2139 triggers a feedback message.
2144 .Qq Ar id Ns Cm :ping Ar text
2151 .Bl -tag -width indent
2155 .Qq Ar id Ns Cm :set_text Ar string
2156 replaces the label text with
2159 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2160 makes the label grayed out
2165 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2168 the label, or makes it visible
2171 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2172 sets the label's tooltip.
2173 Default is disabling the tooltip.
2175 .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
2176 writes a snapshot of the label to an image file of the specified
2179 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2180 sets the label's minimum size to
2184 Default is the natural size.
2188 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2190 sets the label's style.
2194 .Qq Ar id Ns Cm :ping Bq Ar text
2195 triggers a feedback message.
2200 .Qq Ar id Ns Cm :ping Ar text
2207 .Bl -tag -width indent
2211 .Qq Ar id Ns Cm :set_visited Brq Cm 0 Ns | Ns Cm 1
2212 gives the button text the appearance of an unvisited
2213 .Pq Cm 0 , No default
2218 .Qq Ar id Ns Cm :set_label Ar string
2219 replaces the button text with
2222 .Qq Ar id Ns Cm :grab_focus
2223 puts the keyboard focus onto the button.
2225 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2226 makes the button grayed out
2231 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2234 the button, or makes it visible
2237 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2243 Initially, the button is unblocked.
2245 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2246 sets the button's tooltip.
2247 Default is disabling the tooltip.
2249 .Qq Ar id Ns Cm :force
2250 simulates a click on the button.
2252 .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
2253 writes a snapshot of the button to an image file of the specified
2256 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2257 sets the button's minimum size to
2261 Default is the button's natural size.
2265 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2271 .Qq Ar id Ns Cm :ping Bq Ar text
2272 triggers a feedback message.
2277 .Qq Ar id Ns Cm \&:clicked
2279 .Qq Ar id Ns Cm :ping Ar text
2286 .Bl -tag -width indent
2290 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2291 makes the menu bar grayed out
2296 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2299 the menu bar, or makes it visible
2302 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2303 sets the menu bar's tooltip.
2304 Default is disabling the tooltip.
2306 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2307 sets the menu bar's minimum size to
2311 Default is its natural size.
2315 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2317 sets the menu bar's style.
2321 .Qq Ar id Ns Cm :ping Bq Ar text
2322 triggers a feedback message.
2327 .Qq Ar id Ns Cm :ping Ar text
2334 .Bl -tag -width indent
2338 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2339 makes the item grayed out
2344 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2347 the item, or makes it visible
2350 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2356 Initially, the item is unblocked.
2358 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2359 sets the item's tooltip.
2360 Default is disabling the tooltip.
2362 .Qq Ar id Ns Cm :force
2363 simulates a click on the menu item.
2365 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2366 sets the item's minimum size to
2370 Default is the item's natural size.
2374 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2376 sets the item's style.
2380 .Qq Ar id Ns Cm :ping Bq Ar text
2381 triggers a feedback message.
2389 .Ar foo Ns Cm _invoke
2393 .Sx GtkFileChooserDialog
2397 If there isn't any dialog attached to the
2400 .Qq Ar id Ns Cm \&:active Ar label .
2402 .Qq Ar id Ns Cm :ping Ar text
2409 .Bl -tag -width indent
2413 .Qq Ar id Ns Cm :set_current_page Ar n
2414 switches to zero-based page number
2417 .Qq Ar id Ns Cm :grab_focus
2418 puts the keyboard focus onto the notebook.
2420 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2421 makes the notebook grayed out
2426 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2429 the notebook, or makes it visible
2432 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2433 sets the notebook's tooltip.
2434 Default is disabling the tooltip.
2436 .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
2437 writes a snapshot of the notebook to an image file of the specified
2440 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2441 sets the notebooks's minimum size to
2445 Default is the widget's natural size.
2449 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2451 sets the notebook's style.
2455 .Qq Ar id Ns Cm :ping Bq Ar text
2456 triggers a feedback message.
2461 .Qq Ar id Ns Cm :ping Ar text
2468 .Bl -tag -width indent
2472 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2473 makes the overlay grayed out
2478 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2481 the overlay, or makes it visible
2484 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2485 sets the overlay's tooltip.
2486 Default is disabling the tooltip.
2488 .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
2489 writes a snapshot of the overlay to an image file of the specified
2492 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2493 sets the overlay's minimum size to
2497 Default is the overlay's natural size.
2501 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2507 .Qq Ar id Ns Cm :ping Bq Ar text
2508 triggers a feedback message.
2513 .Qq Ar id Ns Cm :ping Ar text
2520 .Bl -tag -width indent
2524 .Qq Ar id Ns Cm :grab_focus
2525 puts the keyboard focus onto the handle.
2527 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2528 makes the widget grayed out
2533 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2536 the widget, or makes it visible
2539 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2540 sets the widget's tooltip.
2541 Default is disabling the tooltip.
2543 .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
2544 writes a snapshot of the widget to an image file of the specified
2547 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2548 sets the widget's minimum size to
2552 Default is the widget's natural size.
2556 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2562 .Qq Ar id Ns Cm :ping Bq Ar text
2563 triggers a feedback message.
2568 .Qq Ar id Ns Cm :ping Ar text
2575 The main window can be turned into a
2577 and embedded into the XEmbed socket of another process; see
2581 .Ss GtkPrintUnixDialog
2582 .Bl -tag -width indent
2586 .Qq Ar id Ns Cm :print Ar file.ps
2587 opens the print dialog.
2592 to the printer the user selected in the dialog.
2594 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2595 makes the dialog grayed out
2600 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2603 the dialog, or makes it visible
2606 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2612 Initially, the dialog is unblocked.
2614 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2615 sets the dialog's tooltip.
2616 Default is disabling the tooltip.
2618 .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
2619 writes a snapshot of the dialog to an image file of the specified
2622 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2623 sets the dialog's minimum size to
2627 Default is the dialog's natural size.
2631 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2633 sets the widget style.
2637 .Qq Ar id Ns Cm :ping Bq Ar text
2638 triggers a feedback message.
2643 .Qq Ar id Ns Cm \&:closed
2645 .Cm GtkPrintUnixDialog
2646 window was closed by the window manager.
2648 .Qq Ar id Ns Cm :ping Ar text
2655 .Bl -tag -width indent
2659 .Qq Ar id Ns Cm :set_fraction Ar x
2660 moves the progress bar to
2662 .Pq between 0 and 1 .
2664 .Qq Ar id Ns Cm :set_text Bq Ar string
2665 replaces the text of the progress bar with
2667 Default is the progress percentage.
2669 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2672 the progress bar, or makes it visible
2675 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2676 sets the tooltip of the progressbar.
2677 Default is disabling the tooltip.
2679 .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
2680 writes a snapshot of the progress bar to an image file of the
2683 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2684 sets the minimum size of the progress bar to
2688 Default is the natural size.
2692 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2698 .Qq Ar id Ns Cm :ping Bq Ar text
2699 triggers a feedback message.
2704 .Qq Ar id Ns Cm :ping Ar text
2711 .Bl -tag -width indent
2715 .Qq Ar id Ns Cm :set_active 1
2716 switches the button on.
2717 All other buttons of the same group will go off automatically.
2719 .Qq Ar id Ns Cm :set_label Ar string
2720 replaces the button text with
2723 .Qq Ar id Ns Cm :grab_focus
2724 puts the keyboard focus onto the button.
2726 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2727 makes the button grayed out
2732 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2735 the button, or makes it visible
2738 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2744 Initially, the button is unblocked.
2746 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2747 sets the button's tooltip.
2748 Default is disabling the tooltip.
2750 .Qq Ar id Ns Cm :force
2751 simulates a click on the button.
2753 .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
2754 writes a snapshot of the button to an image file of the specified
2757 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2758 sets the button's minimum size to
2762 Default is the button's natural size.
2766 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2772 .Qq Ar id Ns Cm :ping Bq Ar text
2773 triggers a feedback message.
2778 .Qq Ar id Ns Cm \&:1
2780 .Qq Ar id Ns Cm \&:0
2783 .Qq Ar id Ns Cm :ping Ar text
2790 .Bl -tag -width indent
2794 .Qq Ar id Ns Cm :set_value Ar x
2795 moves the slider to value
2798 .Qq Ar id Ns Cm :set_fill_level Bq Ar x
2799 moves the fill level indicator to value
2801 Default is hiding the fill level indicator.
2803 .Qq Ar id Ns Cm :set_range Ar min max
2806 .Qq Ar id Ns Cm :set_increments Ar step page
2807 sets the steps the slider moves while pressing arrow keys and
2809 .Pf / Ql Page_Down ,
2812 .Qq Ar id Ns Cm :grab_focus
2813 puts the keyboard focus onto the scale.
2815 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2816 makes the scale grayed out
2821 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2824 the scale, or makes it visible
2827 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
2833 Initially, the scale is unblocked.
2835 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2836 sets the scale's tooltip.
2837 Default is disabling the tooltip.
2839 .Qq Ar id Ns Cm :force
2840 simulates fresh selection of the current value.
2842 .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
2843 writes a snapshot of the scale to an image file of the specified
2846 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2847 sets the scale's minimum size to
2851 Default is the natural size.
2855 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2861 .Qq Ar id Ns Cm :ping Bq Ar text
2862 triggers a feedback message.
2867 .Qq Ar id Ns Cm \&:value Ar number
2869 .Qq Ar id Ns Cm :ping Ar text
2875 .Ss GtkScrolledWindow
2876 .Bl -tag -width indent
2880 .Qq Ar id Ns Cm :hscroll Ar position
2882 .Qq Ar id Ns Cm :vscroll Ar position
2885 to the left or top edge of the
2886 .Cm GtkScrolledWindow ,
2889 .Qq Ar id Ns Cm :hscroll_to_range Ar pos0 pos1
2891 .Qq Ar id Ns Cm :vscroll_to_range Ar pos0 pos1
2892 scroll, if necessary, the range between
2897 .Cm GtkScrolledWindow .
2898 If the range is greater than the window, the initial part of the range
2901 .Qq Ar id Ns Cm :grab_focus
2902 puts the keyboard focus onto the widget.
2904 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2905 makes the widget grayed out
2910 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2913 the widget, or makes it visible
2916 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2917 sets the widget's tooltip.
2918 Default is disabling the tooltip.
2920 .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
2921 writes a snapshot of the widget to an image file of the specified
2924 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2925 sets the minimum size to
2929 Default is the widget's natural size.
2933 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2939 .Qq Ar id Ns Cm :ping Bq Ar text
2940 triggers a feedback message.
2945 .Qq Ar id Ns Cm :ping Ar text
2952 .Bl -tag -width indent
2956 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
2957 makes the separator insensitive
2962 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
2963 sets the tooltip of the separator.
2964 Default is disabling the tooltip.
2966 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
2969 the separator, or makes it visible
2972 .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
2973 writes a snapshot of the separator to an image file of the specified
2976 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
2977 sets the minimum size to
2981 Default is the natural size of the separator.
2985 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
2987 sets the widget style.
2991 .Qq Ar id Ns Cm :ping Bq Ar text
2992 triggers a feedback message.
2997 .Qq Ar id Ns Cm :ping Ar text
3003 .Ss GtkSeparatorMenuItem
3004 .Bl -tag -width indent
3008 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3009 makes the menu item insensitive
3014 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3017 the menu item, or makes it visible
3020 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3021 sets the tooltip of the menu item.
3022 Default is disabling the tooltip.
3024 .Qq Ar id Ns Cm :snapshot Ar file Ns Brq Cm .ps Ns | Ns Cm .eps Ns | Ns Cm .epsf Ns | Ns Cm .pdf Ns | Ns Cm .svg
3025 writes a snapshot of the menu item to an image file of the specified
3028 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3029 sets the minimum size to
3033 Default is the natural size of the menu item.
3037 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3039 sets the widget style.
3043 .Qq Ar id Ns Cm :ping Bq Ar text
3044 triggers a feedback message.
3049 .Qq Ar id Ns Cm :ping Ar text
3056 .Bl -tag -width indent
3060 .Qq Ar id Ns Cm :ping Bq Ar text
3061 triggers a feedback message.
3066 .Qq Ar id Ns Cm :ping Ar text
3074 may be unsupported by Glade, but its definition can be inserted
3075 manually into the GtkBuilder
3078 .Bd -literal -offset indent
3080 <object class="GtkSocket" id="socket1">
3081 <property name="visible">True</property>
3082 <property name="can_focus">True</property>
3085 <property name="expand">True</property>
3086 <property name="fill">True</property>
3087 <property name="position">1</property>
3091 .Bl -tag -width indent
3096 requests a feedback message containing the socket
3099 .Qq Ar id Ns Cm :grab_focus
3100 puts the keyboard focus onto the socket.
3102 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3103 makes the socket grayed out
3108 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3111 the socket, or makes it visible
3114 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3115 sets the socket's tooltip.
3116 Default is disabling the tooltip.
3117 .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
3118 writes a snapshot of the socket to an image file of the specified
3121 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3122 sets the socket's minimum size to
3126 Default is the socket's natural size.
3130 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3136 .Qq Ar id Ns Cm :ping Bq Ar text
3137 triggers a feedback message.
3142 .Qq Ar id Ns Cm :id Ar xid
3143 can be used by another process to XEmbed its widgets into the
3146 .Qq Ar id Ns Cm \&:plug-added ,
3148 .Ar id Ns Cm \&:plug-removed
3150 Notification that the other process has inserted its widgets into or
3151 removed them from the
3154 .Qq Ar id Ns Cm :ping Ar text
3161 .Bl -tag -width indent
3165 .Qq Ar id Ns Cm :set_text Ar string
3166 sets the selected value to
3169 .Qq Ar id Ns Cm :set_range Ar min max
3172 .Qq Ar id Ns Cm :set_increments Ar step page
3173 sets the steps the value changes while pressing arrow keys/left mouse
3176 .Pf / Ql Page_Down Ns
3177 /middle mouse button,
3180 .Qq Ar id Ns Cm :grab_focus
3181 puts the keyboard focus onto the button.
3183 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3184 makes the button grayed out
3189 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3192 the button, or makes it visible
3195 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3201 Initially, the button is unblocked.
3203 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3204 sets the button's tooltip.
3205 Default is disabling the tooltip.
3207 .Qq Ar id Ns Cm :force
3208 simulates fresh selection of the current value
3210 .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
3211 writes a snapshot of the button to an image file of the specified
3214 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3215 sets the button's minimum size to
3219 Default is the widget's natural size.
3223 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3225 sets the button's style.
3229 .Qq Ar id Ns Cm :ping Bq Ar text
3230 triggers a feedback message.
3235 .Qq Ar id Ns Cm \&:text Ar text
3237 .Qq Ar id Ns Cm :ping Ar text
3244 .Bl -tag -width indent
3248 .Qq Ar id Ns Cm :start
3250 .Qq Ar id Ns Cm :stop
3251 start and stop the spinner.
3253 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3254 makes the spinner grayed out
3259 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3262 the spinner, or makes it visible
3265 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3266 sets the spinner's tooltip.
3267 Default is disabling the tooltip.
3269 .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
3270 writes a snapshot of the spinner to an image file of the specified
3273 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3274 sets the spinner's minimum size to
3278 Default is the natural size.
3282 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3288 .Qq Ar id Ns Cm :ping Bq Ar text
3289 triggers a feedback message.
3294 .Qq Ar id Ns Cm :ping Ar text
3301 The context parameter
3303 is an arbitrary non-whitespace string.
3304 .Bl -tag -width indent
3308 .Qq Ar id Ns Cm :push_id Ar c string ,
3309 .Qq Ar id Ns Cm :push Ar string
3312 with context parameter
3316 respectively, and display it in the statusbar.
3318 .Qq Ar id Ns Cm :pop_id Ar c ,
3319 .Qq Ar id Ns Cm :pop
3320 remove the latest entry associated with context parameter
3324 respectively, from the statusbar.
3326 .Qq Ar id Ns Cm :remove_all_id Ar c ,
3327 .Qq Ar id Ns Cm :remove_all
3328 remove the entries associated with context parameter
3332 respectively, from the statusbar.
3334 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3335 makes the statusbar grayed out
3340 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3343 the statusbar, or makes it visible
3346 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3347 sets the statusbar's tooltip.
3348 Default is disabling the tooltip.
3350 .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
3351 writes a snapshot of the statusbar to an image file of the specified
3354 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3355 sets the statusbar's minimum size to
3359 Default is the natural size.
3363 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3365 sets the statusbar's style.
3369 .Qq Ar id Ns Cm :ping Bq Ar text
3370 triggers a feedback message.
3375 .Qq Ar id Ns Cm :ping Ar text
3382 .Bl -tag -width indent
3386 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3387 turns the switch off
3392 .Qq Ar id Ns Cm :grab_focus
3393 puts the keyboard focus onto the switch.
3395 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3396 makes the switch grayed out
3401 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3404 the switch, or makes it visible
3407 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3413 Initially, the switch is unblocked.
3415 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3416 sets the tooltip of the switch.
3417 Default is disabling the tooltip.
3419 .Qq Ar id Ns Cm :force
3420 simulates a click on the switch.
3422 .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
3423 writes a snapshot of the switch to an image file of the specified
3426 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3427 sets the switch's minimum size to
3431 Default is the natural size.
3435 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3441 .Qq Ar id Ns Cm :ping Bq Ar text
3442 triggers a feedback message.
3447 .Qq Ar id Ns Cm \&:1
3449 .Qq Ar id Ns Cm \&:0
3452 .Qq Ar id Ns Cm :ping Ar text
3459 There should be a dedicated
3461 for sending (parts of) the text.
3469 .Ar foo Ns Cm _send_text
3470 will send the content of the
3475 .Ar foo Ns Cm _send_selection
3476 will send the highlighted part the
3478 .Bl -tag -width indent
3482 .Qq Ar id Ns Cm :set_text Ar string
3483 replaces the user-editable text with (potentially empty)
3486 .Qq Ar id Ns Cm :delete
3489 .Qq Ar id Ns Cm :insert_at_cursor Ar string
3494 .Qq Ar id Ns Cm :place_cursor Brq Ar position | Cm end
3495 places the text cursor at
3497 or at the end of the text.
3499 .Qq Ar id Ns Cm :place_cursor_at_line Ar line
3500 places the text cursor at the beginning of
3503 .Qq Ar id Ns Cm :scroll_to_cursor
3504 scrolls to the cursor position if necessary.
3506 .Qq Ar id Ns Cm :save Ar file
3511 command containing the text.
3513 .Qq Ar id Ns Cm :grab_focus
3514 puts the keyboard focus into the textview.
3516 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3517 makes the text view grayed out
3522 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3525 the text view, or makes it visible
3528 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3529 sets the tooltip of the text view.
3530 Default is disabling the tooltip.
3532 .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
3533 writes a snapshot of the text view to an image file of the specified
3536 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3537 sets the minimum size to
3541 Default is the natural size.
3545 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3551 .Qq Ar id Ns Cm :ping Bq Ar text
3552 triggers a feedback message.
3557 .Qq Ar button_id Ns Cm \&:text Ar text ,
3565 and backslashes are replaced by
3568 .Qq Ar id Ns Cm :ping Ar text
3575 .Bl -tag -width indent
3579 .Qq Ar id Ns Cm :set_active Brq Cm 0 Ns | Ns Cm 1
3580 switches the button off
3585 .Qq Ar id Ns Cm :set_label Ar string
3586 replaces the button text with
3589 .Qq Ar id Ns Cm :grab_focus
3590 puts the keyboard focus onto the button.
3592 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3593 makes the button grayed out
3598 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3601 the button, or makes it visible
3604 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3610 Initially, the button is unblocked.
3612 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3613 sets the button's tooltip.
3614 Default is disabling the tooltip.
3616 .Qq Ar id Ns Cm :force
3617 simulates a click on the button.
3619 .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
3620 writes a snapshot of the button to an image file of the specified
3623 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3624 sets the button's minimum size to
3628 Default is the button's natural size.
3632 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3634 sets the button's style.
3638 .Qq Ar id Ns Cm :ping Bq Ar text
3639 triggers a feedback message.
3644 .Qq Ar id Ns Cm \&:1
3646 .Qq Ar id Ns Cm \&:0
3649 .Qq Ar id Ns Cm :ping Ar text
3657 can deal with columns of type
3658 .Cm gboolean , gint , guint , glong , gulong , gint64 , guint64 , gfloat , gdouble ,
3665 refer to the underlying model
3668 .Cm GtkTreeStore ) .
3670 is a sequence of one or more colon-separated integers, e.g.
3674 .Bl -tag -width indent
3678 .Qq Ar id Ns Cm :set Ar row column data
3679 replaces the content at
3683 (which should be compatible with the type of
3685 If necessary, new tree nodes are created to obtain the minimal tree
3686 structure needed to support
3689 .Qq Ar id Ns Cm :insert_row Brq Ar row Bo Cm as_child Bc | Cm end
3690 inserts a new, empty row; either as a sibling of
3696 or at the end of the list, respectively.
3698 .Qq Ar id Ns Cm :move_row Ar origin Brq Ar destination | Cm end
3701 within its current level to
3705 .Qq Ar id Ns Cm :remove_row Ar row
3706 removes the row at position
3709 .Qq Ar id Ns Cm :clear
3712 .Qq Ar id Ns Cm :expand Ar row
3713 expands one level of the subtree below
3716 .Qq Ar id Ns Cm :expand_all Bq Ar row
3717 expands the subtree below
3721 .Qq Ar id Ns Cm :collapse Bq Ar row
3722 collapses the subtree below
3726 .Qq Ar id Ns Cm :set_cursor Bq Ar row
3731 .Qq Ar id Ns Cm :scroll Ar row column
3736 .Qq Ar id Ns Cm :save Ar file
3737 stores the content of the underlying model as a sequence of
3742 .Qq Ar id Ns Cm :grab_focus
3743 puts the keyboard focus onto the tree view.
3745 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3746 makes the tree view grayed out
3751 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3754 the tree view, or makes it visible
3757 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3763 Initially, the widget is unblocked.
3765 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3766 sets the tooltip of the tree view.
3767 Default is disabling the tooltip.
3769 .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
3770 writes a snapshot of the tree view to an image file of the specified
3773 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3774 sets the minimum size of the tree view to
3778 Default is the widget's natural size.
3782 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3788 .Qq Ar id Ns Cm :ping Bq Ar text
3789 triggers a feedback message.
3794 .Qq Ar id Ns Cm \&:clicked
3796 .Qq Ar id Ns Cm \&: Ns Ar column_type row column value ,
3797 one message per cell in the underlying model for each selected row; or
3799 .Qq Ar id Ns Cm \&: Ns Ar column_type row column new_value ,
3804 .Qq Ar id Ns Cm :ping Ar text
3810 .Ss GtkTreeViewColumn
3811 .Bl -tag -width indent
3815 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3821 Initially, the widget is unblocked.
3823 .Qq Ar id Ns Cm :ping Bq Ar text
3824 triggers a feedback message.
3829 .Qq Ar id Ns Cm \&:clicked
3831 .Qq Ar id Ns Cm :ping Ar text
3838 .Bl -tag -width indent
3842 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3843 makes the viewport insensitive
3848 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3851 the viewport, or makes it visible
3854 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3855 sets the tooltip of the viewport.
3856 Default is disabling the tooltip.
3858 .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
3859 writes a snapshot of the viewport to an image file of the specified
3862 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3863 sets the minimum size to
3867 Default is the natural size of the viewport.
3871 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3873 sets the widget style.
3877 .Qq Ar id Ns Cm :ping Bq Ar text
3878 triggers a feedback message.
3883 .Qq Ar id Ns Cm :ping Ar text
3890 .Bl -tag -width indent
3894 .Qq Ar id Ns Cm :set_title Ar string
3895 replaces the text in the title bar with
3898 .Qq Ar id Ns Cm :resize Bq Ar width height
3899 changes the window size to
3903 pixels if specified, or to the default size.
3905 .Qq Ar id Ns Cm :move Ar x y
3906 moves the window to position
3909 .Qq Ar id Ns Cm :fullscreen
3911 .Qq Ar id Ns Cm :unfullscreen
3912 switch fullscreen mode on and off.
3914 .Qq Ar id Ns Cm :set_sensitive Brq Cm 0 Ns | Ns Cm 1
3915 makes the widget grayed out
3920 .Qq Ar id Ns Cm :set_visible Brq Cm 0 Ns | Ns Cm 1
3923 the widget, or makes it visible
3926 .Qq Ar id Ns Cm :block Brq Cm 0 Ns | Ns Cm 1
3932 Initially, the widget is unblocked.
3934 .Qq Ar id Ns Cm :set_tooltip_text Bq Ar text
3935 sets the window's tooltip.
3936 Default is disabling the tooltip.
3937 .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
3938 writes a snapshot of the window to an image file of the specified
3941 .Qq Ar id Ns Cm :set_size_request Bq Ar width height
3942 sets the window's minimum size to
3946 Default is the widget's natural size.
3950 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3956 .Qq Ar id Ns Cm :ping Bq Ar text
3957 triggers a feedback message.
3962 .Qq Ar id Ns Cm \&:closed
3965 was closed by the window manager.
3967 .Qq Ar id Ns Cm :ping Ar text
3977 .Bo Ar prop Ns Cm \&: Ns Ar val Ns Bo Cm \&; Ar prop Ns Cm \&: Ns Ar val ... Bc Bc
3981 of the widget style to
3983 Properties not explicitly specified are reset to their default values.
3985 .Bl -dash -offset indent -compact
3987 .Ql label1:style font:Bold 11; background-color:green
3989 .Ql label1:style font-style:italic; font-weight:bold; color:blue
3991 .Ql button1:style background-image:url("q.png")
3993 .Ql treeview1:style background-image:linear-gradient(45deg, yellow, blue);
3995 .Ql frame1:style border-color:red yellow; border-width:5px
3997 .Ql frame1:style border-radius:10px; transition:10s
3999 For color notations see
4006 .Bl -dash -offset indent -compact
4008 standard X11 colors names like
4010 .Ql Dark Sea Green ,
4016 hexadecimal values in the form
4017 .Cm # Ns Ar rgb , Cm # Ns Ar rrggbb , Cm # Ns Ar rrrgggbbb ,
4019 .Cm # Ns Ar rrrrggggbbbb ;
4021 RGB colors in the form
4022 .Cm rgb( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns Ar blue Ns Cm \&)
4024 RGBA colors in the form
4025 .Cm rgba( Ns Ar red Ns Cm \&, Ns Ar green Ns Cm \&, Ns
4026 .Ar blue Ns Cm \&, Ns Ar alpha Ns Cm \&) ;
4027 .Ar red , green , blue
4028 between 0 and 255 and
4032 color expressions like
4035 .Ql lighter(currentColor) .
4040 .Ss Discovering Pipeglade Interactively
4041 Suppose the interface in
4044 .Sx GtkLabel Ql label1
4046 .Sx GtkButton Ql button1 .
4052 .Sx GtkButton , Ql button1:clicked
4053 will be reported on the terminal.
4056 .Dl label1:set_text The Button
4058 will change the text shown on the label into
4060 .Ss One-Shot File Dialog
4061 Suppose the interface in
4062 .Pa ./simple_open.ui
4064 .Sx GtkFileChooserDialog
4072 .Dl pipeglade -u simple_open.ui
4074 will open the dialog; pressing
4076 will close it after sending the selected filename to
4078 .Ss One-Shot User Notification
4080 .Pa ./simple_dialog.ui
4082 .Sx GtkLabel Ql label1 ,
4084 .Bd -literal -offset indent
4085 pipeglade -u simple_dialog.ui <<< \e
4086 "label1:set_text NOW READ THIS!"
4088 will set the label text accordingly and wait for user input.
4089 .Ss Continuous Input
4090 The following shell command displays a running clock:
4091 .Bd -literal -offset indent
4093 echo "label1:set_text `date`";
4095 done | pipeglade -u simple_dialog.ui
4097 .Ss Continuous Input and Output
4098 The following shell script fragment sets up
4100 for continuous communication with another program,
4102 .Bd -literal -offset indent
4103 pipeglade -i in.fifo -o out.fifo -b
4104 main_prog <out.fifo >in.fifo
4117 .An Bert Burgemeister
4118 .Aq Mt trebbu@googlemail.com .
4120 Due to what appears to be a bug in cairo v1.14.0,
4122 used with this library version occasionally crashes on