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 <!-- ##### STRUCT GtkToolbar ##### -->
46 The #GtkToolbar struct only contains private data and should only be
47 accessed through the function described below.
57 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
62 @toolbar: the object which received the signal.
66 <!-- ##### SIGNAL GtkToolbar::move-focus ##### -->
71 @toolbar: the object which received the signal.
75 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
80 @toolbar: the object which received the signal.
81 @orientation: the new #GtkOrientation of the toolbar.
83 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
88 @toolbar: the object which received the signal.
94 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
102 <!-- ##### ARG GtkToolbar:icon-size ##### -->
107 <!-- ##### ARG GtkToolbar:icon-size-set ##### -->
112 <!-- ##### ARG GtkToolbar:orientation ##### -->
117 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
122 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
127 <!-- ##### ARG GtkToolbar:tooltips ##### -->
132 <!-- ##### ARG GtkToolbar:expand ##### -->
137 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
142 <!-- ##### ARG GtkToolbar:button-relief ##### -->
147 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
152 <!-- ##### ARG GtkToolbar:max-child-expand ##### -->
157 <!-- ##### ARG GtkToolbar:shadow-type ##### -->
162 <!-- ##### ARG GtkToolbar:space-size ##### -->
167 <!-- ##### ARG GtkToolbar:space-style ##### -->
172 <!-- ##### ENUM GtkToolbarChildType ##### -->
174 #GtkToolbarChildType is used to set the type of new elements that are added
178 @GTK_TOOLBAR_CHILD_SPACE: a space in the style of the toolbar's #GtkToolbarSpaceStyle.
179 @GTK_TOOLBAR_CHILD_BUTTON: a #GtkButton.
180 @GTK_TOOLBAR_CHILD_TOGGLEBUTTON: a #GtkToggleButton.
181 @GTK_TOOLBAR_CHILD_RADIOBUTTON: a #GtkRadioButton.
182 @GTK_TOOLBAR_CHILD_WIDGET: a standard #GtkWidget.
184 <!-- ##### ENUM GtkToolbarSpaceStyle ##### -->
189 @GTK_TOOLBAR_SPACE_EMPTY:
190 @GTK_TOOLBAR_SPACE_LINE:
192 <!-- ##### STRUCT GtkToolbarChild ##### -->
202 <!-- ##### FUNCTION gtk_toolbar_new ##### -->
207 @Returns: the newly-created toolbar.
210 <!-- ##### FUNCTION gtk_toolbar_insert ##### -->
220 <!-- ##### FUNCTION gtk_toolbar_get_item_index ##### -->
230 <!-- ##### FUNCTION gtk_toolbar_get_n_items ##### -->
239 <!-- ##### FUNCTION gtk_toolbar_get_nth_item ##### -->
249 <!-- ##### FUNCTION gtk_toolbar_get_drop_index ##### -->
260 <!-- ##### FUNCTION gtk_toolbar_set_drop_highlight_item ##### -->
270 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
279 <!-- ##### FUNCTION gtk_toolbar_set_orientation ##### -->
288 <!-- ##### FUNCTION gtk_toolbar_set_tooltips ##### -->
297 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
305 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
314 <!-- ##### FUNCTION gtk_toolbar_get_orientation ##### -->
323 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
332 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
341 <!-- ##### FUNCTION gtk_toolbar_get_tooltips ##### -->
350 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
359 <!-- ##### FUNCTION gtk_toolbar_append_item ##### -->
367 @tooltip_private_text:
374 <!-- ##### FUNCTION gtk_toolbar_prepend_item ##### -->
382 @tooltip_private_text:
389 <!-- ##### FUNCTION gtk_toolbar_insert_item ##### -->
397 @tooltip_private_text:
405 <!-- ##### FUNCTION gtk_toolbar_append_space ##### -->
413 <!-- ##### FUNCTION gtk_toolbar_prepend_space ##### -->
421 <!-- ##### FUNCTION gtk_toolbar_insert_space ##### -->
430 <!-- ##### FUNCTION gtk_toolbar_append_element ##### -->
443 @tooltip_private_text:
450 <!-- ##### FUNCTION gtk_toolbar_prepend_element ##### -->
460 @tooltip_private_text:
467 <!-- ##### FUNCTION gtk_toolbar_insert_element ##### -->
477 @tooltip_private_text:
485 <!-- ##### FUNCTION gtk_toolbar_append_widget ##### -->
493 @tooltip_private_text:
496 <!-- ##### FUNCTION gtk_toolbar_prepend_widget ##### -->
504 @tooltip_private_text:
507 <!-- ##### FUNCTION gtk_toolbar_insert_widget ##### -->
515 @tooltip_private_text:
519 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
528 <!-- ##### FUNCTION gtk_toolbar_insert_stock ##### -->
536 @tooltip_private_text:
543 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
552 <!-- ##### FUNCTION gtk_toolbar_remove_space ##### -->
561 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->