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 <!-- ##### STRUCT GtkToolbar ##### -->
43 The #GtkToolbar struct only contains private data and should only be
44 accessed through the function described below.
48 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
53 @toolbar: the object which received the signal.
57 <!-- ##### SIGNAL GtkToolbar::move-focus ##### -->
62 @toolbar: the object which received the signal.
66 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
71 @toolbar: the object which received the signal.
72 @orientation: the new #GtkOrientation of the toolbar.
74 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
79 @toolbar: the object which received the signal.
88 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
96 <!-- ##### ARG GtkToolbar:orientation ##### -->
101 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
106 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
111 <!-- ##### ARG GtkToolbar:expand ##### -->
116 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
121 <!-- ##### ARG GtkToolbar:button-relief ##### -->
126 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
131 <!-- ##### ARG GtkToolbar:shadow-type ##### -->
136 <!-- ##### ARG GtkToolbar:space-size ##### -->
141 <!-- ##### ARG GtkToolbar:space-style ##### -->
146 <!-- ##### ENUM GtkToolbarChildType ##### -->
148 #GtkToolbarChildType is used to set the type of new elements that are added
152 @GTK_TOOLBAR_CHILD_SPACE: a space in the style of the toolbar's #GtkToolbarSpaceStyle.
153 @GTK_TOOLBAR_CHILD_BUTTON: a #GtkButton.
154 @GTK_TOOLBAR_CHILD_TOGGLEBUTTON: a #GtkToggleButton.
155 @GTK_TOOLBAR_CHILD_RADIOBUTTON: a #GtkRadioButton.
156 @GTK_TOOLBAR_CHILD_WIDGET: a standard #GtkWidget.
158 <!-- ##### ENUM GtkToolbarSpaceStyle ##### -->
163 @GTK_TOOLBAR_SPACE_EMPTY:
164 @GTK_TOOLBAR_SPACE_LINE:
166 <!-- ##### STRUCT GtkToolbarChild ##### -->
176 <!-- ##### FUNCTION gtk_toolbar_new ##### -->
181 @Returns: the newly-created toolbar.
184 <!-- ##### FUNCTION gtk_toolbar_insert ##### -->
194 <!-- ##### FUNCTION gtk_toolbar_get_item_index ##### -->
204 <!-- ##### FUNCTION gtk_toolbar_get_n_items ##### -->
213 <!-- ##### FUNCTION gtk_toolbar_get_nth_item ##### -->
223 <!-- ##### FUNCTION gtk_toolbar_get_drop_index ##### -->
234 <!-- ##### FUNCTION gtk_toolbar_set_drop_highlight_item ##### -->
244 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
253 <!-- ##### FUNCTION gtk_toolbar_set_orientation ##### -->
262 <!-- ##### FUNCTION gtk_toolbar_set_tooltips ##### -->
271 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
279 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
288 <!-- ##### FUNCTION gtk_toolbar_get_orientation ##### -->
297 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
306 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
315 <!-- ##### FUNCTION gtk_toolbar_get_tooltips ##### -->
324 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
333 <!-- ##### FUNCTION gtk_toolbar_append_item ##### -->
341 @tooltip_private_text:
348 <!-- ##### FUNCTION gtk_toolbar_prepend_item ##### -->
356 @tooltip_private_text:
363 <!-- ##### FUNCTION gtk_toolbar_insert_item ##### -->
371 @tooltip_private_text:
379 <!-- ##### FUNCTION gtk_toolbar_append_space ##### -->
387 <!-- ##### FUNCTION gtk_toolbar_prepend_space ##### -->
395 <!-- ##### FUNCTION gtk_toolbar_insert_space ##### -->
404 <!-- ##### FUNCTION gtk_toolbar_append_element ##### -->
417 @tooltip_private_text:
424 <!-- ##### FUNCTION gtk_toolbar_prepend_element ##### -->
434 @tooltip_private_text:
441 <!-- ##### FUNCTION gtk_toolbar_insert_element ##### -->
451 @tooltip_private_text:
459 <!-- ##### FUNCTION gtk_toolbar_append_widget ##### -->
467 @tooltip_private_text:
470 <!-- ##### FUNCTION gtk_toolbar_prepend_widget ##### -->
478 @tooltip_private_text:
481 <!-- ##### FUNCTION gtk_toolbar_insert_widget ##### -->
489 @tooltip_private_text:
493 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
502 <!-- ##### FUNCTION gtk_toolbar_insert_stock ##### -->
510 @tooltip_private_text:
517 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
526 <!-- ##### FUNCTION gtk_toolbar_remove_space ##### -->
535 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->