Base class for and
The primary purpose of this class is to keep track of the various properties of
gtk-button-box-get-child-size retrieves the minimum width and height for
widgets in a given button box.
gtk-button-box-set-child-size allows those
properties to be changed.
The internal padding of buttons can be retrieved and changed per button box
and change default number of pixels between buttons, respectively.
and alter the method used to spread the buttons in a button box across the
The main purpose of GtkButtonBox is to make sure the children have all the same
size. Therefore it ignores the homogeneous property which it inherited from
GtkBox, and always behaves as if homogeneous was ‘
This class defines the following slots:
- How to layout the buttons in the box. Possible values are default, spread, edge, start and end
<gtk-button-box>) ⇒ (ret
Retrieves the method being used to arrange the buttons in a button box.
- the method used to layout buttons in widget.
<gtk-widget>) ⇒ (ret
Returns whether child should appear in a secondary group of children.
- a child of widget
- whether child should appear in a secondary group of children.
Changes the way buttons are arranged in their container.
- the new layout style.
Sets whether child should appear in a secondary group of children. A typical use of a secondary child is the help button in a dialog.
This group appears after the other children if the style is ‘GTK_BUTTONBOX_START’, ‘GTK_BUTTONBOX_SPREAD’ or ‘GTK_BUTTONBOX_EDGE’, and before the other children if the style is ‘GTK_BUTTONBOX_END’. For horizontal button boxes, the definition of before/after depends on direction of the widget (see
gtk-widget-set-direction). If the style is ‘GTK_BUTTONBOX_START’ or ‘GTK_BUTTONBOX_END’, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children.
- a child of widget
- if ‘
#t’, the child appears in a secondary group of the button box.