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.
51 <!-- ##### SIGNAL GtkToolbar::focus-home-or-end ##### -->
56 @toolbar: the object which received the signal.
60 <!-- ##### SIGNAL GtkToolbar::orientation-changed ##### -->
65 @toolbar: the object which received the signal.
66 @orientation: the new #GtkOrientation of the toolbar.
68 <!-- ##### SIGNAL GtkToolbar::popup-context-menu ##### -->
73 @toolbar: the object which received the signal.
79 <!-- ##### SIGNAL GtkToolbar::style-changed ##### -->
87 <!-- ##### ARG GtkToolbar:icon-size ##### -->
92 <!-- ##### ARG GtkToolbar:icon-size-set ##### -->
97 <!-- ##### ARG GtkToolbar:show-arrow ##### -->
102 <!-- ##### ARG GtkToolbar:toolbar-style ##### -->
107 <!-- ##### ARG GtkToolbar:tooltips ##### -->
112 <!-- ##### ARG GtkToolbar:expand ##### -->
117 <!-- ##### ARG GtkToolbar:homogeneous ##### -->
122 <!-- ##### ARG GtkToolbar:button-relief ##### -->
127 <!-- ##### ARG GtkToolbar:internal-padding ##### -->
132 <!-- ##### ARG GtkToolbar:max-child-expand ##### -->
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 ##### -->
250 <!-- ##### FUNCTION gtk_toolbar_set_show_arrow ##### -->
259 <!-- ##### FUNCTION gtk_toolbar_set_orientation ##### -->
268 <!-- ##### FUNCTION gtk_toolbar_set_tooltips ##### -->
277 <!-- ##### FUNCTION gtk_toolbar_unset_icon_size ##### -->
285 <!-- ##### FUNCTION gtk_toolbar_get_show_arrow ##### -->
294 <!-- ##### FUNCTION gtk_toolbar_get_orientation ##### -->
303 <!-- ##### FUNCTION gtk_toolbar_get_style ##### -->
312 <!-- ##### FUNCTION gtk_toolbar_get_icon_size ##### -->
321 <!-- ##### FUNCTION gtk_toolbar_get_tooltips ##### -->
330 <!-- ##### FUNCTION gtk_toolbar_get_relief_style ##### -->
339 <!-- ##### FUNCTION gtk_toolbar_append_item ##### -->
347 @tooltip_private_text:
354 <!-- ##### FUNCTION gtk_toolbar_prepend_item ##### -->
362 @tooltip_private_text:
369 <!-- ##### FUNCTION gtk_toolbar_insert_item ##### -->
377 @tooltip_private_text:
385 <!-- ##### FUNCTION gtk_toolbar_append_space ##### -->
393 <!-- ##### FUNCTION gtk_toolbar_prepend_space ##### -->
401 <!-- ##### FUNCTION gtk_toolbar_insert_space ##### -->
410 <!-- ##### FUNCTION gtk_toolbar_append_element ##### -->
423 @tooltip_private_text:
430 <!-- ##### FUNCTION gtk_toolbar_prepend_element ##### -->
440 @tooltip_private_text:
447 <!-- ##### FUNCTION gtk_toolbar_insert_element ##### -->
457 @tooltip_private_text:
465 <!-- ##### FUNCTION gtk_toolbar_append_widget ##### -->
473 @tooltip_private_text:
476 <!-- ##### FUNCTION gtk_toolbar_prepend_widget ##### -->
484 @tooltip_private_text:
487 <!-- ##### FUNCTION gtk_toolbar_insert_widget ##### -->
495 @tooltip_private_text:
499 <!-- ##### FUNCTION gtk_toolbar_set_style ##### -->
508 <!-- ##### FUNCTION gtk_toolbar_insert_stock ##### -->
516 @tooltip_private_text:
523 <!-- ##### FUNCTION gtk_toolbar_set_icon_size ##### -->
532 <!-- ##### FUNCTION gtk_toolbar_remove_space ##### -->
541 <!-- ##### FUNCTION gtk_toolbar_unset_style ##### -->