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.
54 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
59 @toolbar: the object which received the signal.
63 <!-- ##### SIGNAL GtkToolbar::move-focus ##### -->
68 @toolbar: the object which received the signal.
72 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
77 @toolbar: the object which received the signal.
78 @orientation: the new #GtkOrientation of the toolbar.
80 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
85 @toolbar: the object which received the signal.
94 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
102 <!-- ##### ARG GtkToolbar:orientation ##### -->
107 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
112 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
117 <!-- ##### ARG GtkToolbar:expand ##### -->
122 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
127 <!-- ##### ARG GtkToolbar:button-relief ##### -->
132 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
137 <!-- ##### ARG GtkToolbar:shadow-type ##### -->
142 <!-- ##### ARG GtkToolbar:space-size ##### -->
147 <!-- ##### ARG GtkToolbar:space-style ##### -->
152 <!-- ##### ENUM GtkToolbarChildType ##### -->
154 #GtkToolbarChildType is used to set the type of new elements that are added
158 @GTK_TOOLBAR_CHILD_SPACE: a space in the style of the toolbar's #GtkToolbarSpaceStyle.
159 @GTK_TOOLBAR_CHILD_BUTTON: a #GtkButton.
160 @GTK_TOOLBAR_CHILD_TOGGLEBUTTON: a #GtkToggleButton.
161 @GTK_TOOLBAR_CHILD_RADIOBUTTON: a #GtkRadioButton.
162 @GTK_TOOLBAR_CHILD_WIDGET: a standard #GtkWidget.
164 <!-- ##### ENUM GtkToolbarSpaceStyle ##### -->
169 @GTK_TOOLBAR_SPACE_EMPTY:
170 @GTK_TOOLBAR_SPACE_LINE:
172 <!-- ##### STRUCT GtkToolbarChild ##### -->
182 <!-- ##### FUNCTION gtk_toolbar_new ##### -->
187 @Returns: the newly-created toolbar.
190 <!-- ##### FUNCTION gtk_toolbar_insert ##### -->
200 <!-- ##### FUNCTION gtk_toolbar_get_item_index ##### -->
210 <!-- ##### FUNCTION gtk_toolbar_get_n_items ##### -->
219 <!-- ##### FUNCTION gtk_toolbar_get_nth_item ##### -->
229 <!-- ##### FUNCTION gtk_toolbar_get_drop_index ##### -->
240 <!-- ##### FUNCTION gtk_toolbar_set_drop_highlight_item ##### -->
248 <!-- # Unused Parameters # -->
252 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
261 <!-- ##### FUNCTION gtk_toolbar_set_orientation ##### -->
270 <!-- ##### FUNCTION gtk_toolbar_set_tooltips ##### -->
279 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
287 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
296 <!-- ##### FUNCTION gtk_toolbar_get_orientation ##### -->
305 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
314 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
323 <!-- ##### FUNCTION gtk_toolbar_get_tooltips ##### -->
332 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
341 <!-- ##### FUNCTION gtk_toolbar_append_item ##### -->
349 @tooltip_private_text:
356 <!-- ##### FUNCTION gtk_toolbar_prepend_item ##### -->
364 @tooltip_private_text:
371 <!-- ##### FUNCTION gtk_toolbar_insert_item ##### -->
379 @tooltip_private_text:
387 <!-- ##### FUNCTION gtk_toolbar_append_space ##### -->
395 <!-- ##### FUNCTION gtk_toolbar_prepend_space ##### -->
403 <!-- ##### FUNCTION gtk_toolbar_insert_space ##### -->
412 <!-- ##### FUNCTION gtk_toolbar_append_element ##### -->
425 @tooltip_private_text:
432 <!-- ##### FUNCTION gtk_toolbar_prepend_element ##### -->
442 @tooltip_private_text:
449 <!-- ##### FUNCTION gtk_toolbar_insert_element ##### -->
459 @tooltip_private_text:
467 <!-- ##### FUNCTION gtk_toolbar_append_widget ##### -->
475 @tooltip_private_text:
478 <!-- ##### FUNCTION gtk_toolbar_prepend_widget ##### -->
486 @tooltip_private_text:
489 <!-- ##### FUNCTION gtk_toolbar_insert_widget ##### -->
497 @tooltip_private_text:
501 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
510 <!-- ##### FUNCTION gtk_toolbar_insert_stock ##### -->
518 @tooltip_private_text:
525 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
534 <!-- ##### FUNCTION gtk_toolbar_remove_space ##### -->
543 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->