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.
56 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
61 @toolbar: the object which received the signal.
65 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
70 @toolbar: the object which received the signal.
71 @orientation: the new #GtkOrientation of the toolbar.
73 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
78 @toolbar: the object which received the signal.
84 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
92 <!-- ##### ARG GtkToolbar:icon-size ##### -->
97 <!-- ##### ARG GtkToolbar:icon-size-set ##### -->
102 <!-- ##### ARG GtkToolbar:orientation ##### -->
107 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
112 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
117 <!-- ##### ARG GtkToolbar:tooltips ##### -->
122 <!-- ##### ARG GtkToolbar:expand ##### -->
127 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
132 <!-- ##### ARG GtkToolbar:button-relief ##### -->
137 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
142 <!-- ##### ARG GtkToolbar:max-child-expand ##### -->
147 <!-- ##### ARG GtkToolbar:shadow-type ##### -->
152 <!-- ##### ARG GtkToolbar:space-size ##### -->
157 <!-- ##### ARG GtkToolbar:space-style ##### -->
162 <!-- ##### ENUM GtkToolbarChildType ##### -->
164 #GtkToolbarChildType is used to set the type of new elements that are added
168 @GTK_TOOLBAR_CHILD_SPACE: a space in the style of the toolbar's #GtkToolbarSpaceStyle.
169 @GTK_TOOLBAR_CHILD_BUTTON: a #GtkButton.
170 @GTK_TOOLBAR_CHILD_TOGGLEBUTTON: a #GtkToggleButton.
171 @GTK_TOOLBAR_CHILD_RADIOBUTTON: a #GtkRadioButton.
172 @GTK_TOOLBAR_CHILD_WIDGET: a standard #GtkWidget.
174 <!-- ##### ENUM GtkToolbarSpaceStyle ##### -->
179 @GTK_TOOLBAR_SPACE_EMPTY:
180 @GTK_TOOLBAR_SPACE_LINE:
182 <!-- ##### STRUCT GtkToolbarChild ##### -->
192 <!-- ##### FUNCTION gtk_toolbar_new ##### -->
197 @Returns: the newly-created toolbar.
200 <!-- ##### FUNCTION gtk_toolbar_insert ##### -->
210 <!-- ##### FUNCTION gtk_toolbar_get_item_index ##### -->
220 <!-- ##### FUNCTION gtk_toolbar_get_n_items ##### -->
229 <!-- ##### FUNCTION gtk_toolbar_get_nth_item ##### -->
239 <!-- ##### FUNCTION gtk_toolbar_get_drop_index ##### -->
250 <!-- ##### FUNCTION gtk_toolbar_set_drop_highlight_item ##### -->
260 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
269 <!-- ##### FUNCTION gtk_toolbar_set_orientation ##### -->
278 <!-- ##### FUNCTION gtk_toolbar_set_tooltips ##### -->
287 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
295 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
304 <!-- ##### FUNCTION gtk_toolbar_get_orientation ##### -->
313 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
322 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
331 <!-- ##### FUNCTION gtk_toolbar_get_tooltips ##### -->
340 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
349 <!-- ##### FUNCTION gtk_toolbar_append_item ##### -->
357 @tooltip_private_text:
364 <!-- ##### FUNCTION gtk_toolbar_prepend_item ##### -->
372 @tooltip_private_text:
379 <!-- ##### FUNCTION gtk_toolbar_insert_item ##### -->
387 @tooltip_private_text:
395 <!-- ##### FUNCTION gtk_toolbar_append_space ##### -->
403 <!-- ##### FUNCTION gtk_toolbar_prepend_space ##### -->
411 <!-- ##### FUNCTION gtk_toolbar_insert_space ##### -->
420 <!-- ##### FUNCTION gtk_toolbar_append_element ##### -->
433 @tooltip_private_text:
440 <!-- ##### FUNCTION gtk_toolbar_prepend_element ##### -->
450 @tooltip_private_text:
457 <!-- ##### FUNCTION gtk_toolbar_insert_element ##### -->
467 @tooltip_private_text:
475 <!-- ##### FUNCTION gtk_toolbar_append_widget ##### -->
483 @tooltip_private_text:
486 <!-- ##### FUNCTION gtk_toolbar_prepend_widget ##### -->
494 @tooltip_private_text:
497 <!-- ##### FUNCTION gtk_toolbar_insert_widget ##### -->
505 @tooltip_private_text:
509 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
518 <!-- ##### FUNCTION gtk_toolbar_insert_stock ##### -->
526 @tooltip_private_text:
533 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
542 <!-- ##### FUNCTION gtk_toolbar_remove_space ##### -->
551 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->