Object Hierarchy:

Object hierarchy for Toolbar


[ CCode ( type_id = "gtk_toolbar_get_type ()" ) ]
public class Toolbar : Container, Implementor, Buildable, Orientable, ToolShell

A toolbar is created with a call to Toolbar.

A toolbar can contain instances of a subclass of ToolItem. To add a ToolItem to the a toolbar, use insert. To remove an item from the toolbar use remove. To add a button to the toolbar, add an instance of ToolButton.

Toolbar items can be visually grouped by adding instances of SeparatorToolItem to the toolbar. If the GtkToolbar child property “expand” is TRUE and the property draw is set to FALSE, the effect is to force all following items to the end of the toolbar.

By default, a toolbar can be shrunk, upon which it will add an arrow button to show an overflow menu offering access to any ToolItem child that has a proxy menu item. To disable this and request enough size for all children, call set_show_arrow to set show_arrow to false.

Creating a context menu for the toolbar can be done by connecting to the popup_context_menu signal.

CSS nodes

GtkToolbar has a single CSS node with name toolbar.


Namespace: Gtk
Package: gtk+-3.0



Creation methods:



Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable