A container with just one child
The <gtk-bin>
widget is a container with just one child. It is not very
useful itself, but it is useful for deriving subclasses, since it provides
common code needed for handling a single child widget.
Many GTK+ widgets are subclasses of <gtk-bin>
, including
<gtk-window>
, <gtk-button>
, <gtk-frame>
,
<gtk-handle-box>
, and <gtk-scrolled-window>
.
<gtk-bin>
) ⇒ (ret <gtk-widget>
)Gets the child of the
<gtk-bin>
, or ‘#f
’ if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.
- bin
- a
<gtk-bin>
- ret
- pointer to child of the
<gtk-bin>