1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Create bars of buttons and other widgets
7 <!-- ##### SECTION Long_Description ##### -->
9 A toolbar is created with a call to gtk_toolbar_new().
12 A toolbar can contain instances of a subclass of #GtkToolItem. To add
13 a #GtkToolItem to the a toolbar, use gtk_toolbar_insert(). To remove
14 an item from the toolbar use gtk_container_remove(). To add a button
15 to the toolbar, add an instance of #GtkToolButton.
18 Toolbar items can be visually grouped by adding instances of
19 #GtkSeparatorToolItem to the toolbar. If a #GtkSeparatorToolItem has
20 the "expand" property set to #TRUE and the "draw" property set to
21 #FALSE the effect is to force all following items to the end of the
25 Creating a context menu for the toolbar can be done by connecting to
26 the #GtkToolbar::popup-context-menu signal.
29 <!-- ##### SECTION See_Also ##### -->
34 <term>#GtkToolItem</term>
35 <listitem><para>Base class of widgets that can be added to a toolbar.</para></listitem>
41 <!-- ##### SECTION Stability_Level ##### -->
44 <!-- ##### SECTION Image ##### -->
47 <!-- ##### STRUCT GtkToolbar ##### -->
49 The #GtkToolbar struct only contains private data and should only be
50 accessed through the function described below.
54 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
59 @toolbar: the object which received the signal.
63 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
68 @toolbar: the object which received the signal.
69 @orientation: the new #GtkOrientation of the toolbar.
71 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
76 @toolbar: the object which received the signal.
82 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
90 <!-- ##### ARG GtkToolbar:icon-size ##### -->
95 <!-- ##### ARG GtkToolbar:icon-size-set ##### -->
100 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
105 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
110 <!-- ##### ARG GtkToolbar:expand ##### -->
115 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
120 <!-- ##### ARG GtkToolbar:button-relief ##### -->
125 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
130 <!-- ##### ARG GtkToolbar:max-child-expand ##### -->
135 <!-- ##### ARG GtkToolbar:shadow-type ##### -->
140 <!-- ##### ARG GtkToolbar:space-size ##### -->
145 <!-- ##### ARG GtkToolbar:space-style ##### -->
150 <!-- ##### ENUM GtkToolbarChildType ##### -->
152 #GtkToolbarChildType is used to set the type of new elements that are added
156 @GTK_TOOLBAR_CHILD_SPACE: a space in the style of the toolbar's #GtkToolbarSpaceStyle.
157 @GTK_TOOLBAR_CHILD_BUTTON: a #GtkButton.
158 @GTK_TOOLBAR_CHILD_TOGGLEBUTTON: a #GtkToggleButton.
159 @GTK_TOOLBAR_CHILD_RADIOBUTTON: a #GtkRadioButton.
160 @GTK_TOOLBAR_CHILD_WIDGET: a standard #GtkWidget.
162 <!-- ##### ENUM GtkToolbarSpaceStyle ##### -->
167 @GTK_TOOLBAR_SPACE_EMPTY:
168 @GTK_TOOLBAR_SPACE_LINE:
170 <!-- ##### STRUCT GtkToolbarChild ##### -->
180 <!-- ##### FUNCTION gtk_toolbar_new ##### -->
186 @Returns: the newly-created toolbar.
189 <!-- ##### FUNCTION gtk_toolbar_insert ##### -->
199 <!-- ##### FUNCTION gtk_toolbar_get_item_index ##### -->
209 <!-- ##### FUNCTION gtk_toolbar_get_n_items ##### -->
218 <!-- ##### FUNCTION gtk_toolbar_get_nth_item ##### -->
228 <!-- ##### FUNCTION gtk_toolbar_get_drop_index ##### -->
239 <!-- ##### FUNCTION gtk_toolbar_set_drop_highlight_item ##### -->
249 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
258 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
266 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
275 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
284 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
293 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
302 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
311 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
320 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->