1 2@c %start of fragment 3 4@node GtkToolbar 5@chapter GtkToolbar 6Create bars of buttons and other widgets 7 8@section Overview 9A toolbar is created with a call to @code{gtk-toolbar-new}. 10 11A toolbar can contain instances of a subclass of @code{<gtk-tool-item>}. To add 12a @code{<gtk-tool-item>} to the a toolbar, use @code{gtk-toolbar-insert}. To 13remove an item from the toolbar use @code{gtk-container-remove}. To add a button 14to the toolbar, add an instance of @code{<gtk-tool-button>}. 15 16Toolbar items can be visually grouped by adding instances of 17@code{<gtk-separator-tool-item>} to the toolbar. If a 18@code{<gtk-separator-tool-item>} has the "expand" property set to 19@code{@code{#t}} and the "draw" property set to @code{@code{#f}} the effect is 20to force all following items to the end of the toolbar. 21 22Creating a context menu for the toolbar can be done by connecting to the 23@code{<gtk-toolbar::popup-context-menu>} signal. 24 25@section Usage 26@include defuns-gtktoolbar.xml.texi 27 28@c %end of fragment 29