Gtk.SeparatorToolItem
Gtk.SeparatorToolItem — A toolbar item that separates groups of other toolbar items
Object Hierarchy:
GObject
╰── GInitiallyUnowned
╰── Gtk.Widget
╰── Gtk.Container
╰── Gtk.Bin
╰── Gtk.ToolItem
╰── Gtk.SeparatorToolItem
Functions:
Description:
A Gtk.SeparatorToolItem
is a GtkToolItem that separates groups of other GtkToolItems. Depending on the theme, a Gtk.SeparatorToolItem
will often look like a vertical line on horizontally docked toolbars.
If the Gtk.Toolbar child property expand
is True and the property Gtk.SeparatorToolItem
:draw is False, a Gtk.SeparatorToolItem
will act as a spring
that forces other items to the ends of the toolbar.
Use Gtk.SeparatorToolItem::new()
to create a new Gtk.SeparatorToolItem
.
Function Details:
new()
new () -> Gtk.ToolItem
Create a new Gtk.SeparatorToolItem
Returns: the new Gtk.SeparatorToolItem
Since: 2.4
set_draw()
set_draw (self, draw:bool)
Whether item
is drawn as a vertical line, or just blank.Setting this to FALSE
along with `Gtk.ToolItem:set_expand
()` is usefulto create an item that forces following items to the end of the toolbar.
- Since: 2.4
get_draw()
get_draw (self) -> bool
Returns whether item
is drawn as a line, or just blank. See Gtk.SeparatorToolItem:set_draw()
.
Returns:
True
ifitem
is drawn as a line, or just blank.Since: 2.4