Next: , Previous: GtkToolItem, Up: Top


67 GtkSeparatorToolItem

A toolbar item that separates groups of other toolbar items

67.1 Overview

A <gtk-separator-item> is a <gtk-tool-item> that separates groups of other <gtk-tool-items>. Depending on the theme, a <gtk-separator-tool-item> will often look like a vertical line on horizontally docked toolbars.

If the property "expand" is #t and the property "draw" is #f, a <gtk-separator-tool-item> will act as a "spring" that forces other items to the ends of the toolbar.

Use gtk-separator-tool-item-new to create a new <gtk-separator-tool-item>.

67.2 Usage

— Class: <gtk-separator-tool-item>

Derives from <gtk-tool-item>.

This class defines the following slots:

draw
Whether the separator is drawn, or just blank
— Function: gtk-separator-tool-item-new ⇒  (ret <gtk-tool-item>)

Create a new <gtk-separator-tool-item>

ret
the new <gtk-separator-tool-item>

Since 2.4

— Function: gtk-separator-tool-item-set-draw (self <gtk-separator-tool-item>) (draw bool)
— Method: set-draw

When separator-tool-items is drawn as a vertical line, or just blank. Setting this #f along with gtk-tool-item-set-expand is useful to create an item that forces following items to the end of the toolbar.

item
a <gtk-separator-tool-item>
draw
whether separator-tool-item is drawn as a vertical line

Since 2.4

— Function: gtk-separator-tool-item-get-draw (self <gtk-separator-tool-item>) ⇒  (ret bool)
— Method: get-draw

Returns whether separator-tool-item is drawn as a line, or just blank. See gtk-separator-tool-item-set-draw.

item
a <gtk-separator-tool-item>
ret
#t if separator-tool-item is drawn as a line, or just blank.

Since 2.4