1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A GtkToolItem subclass that displays buttons
7 <!-- ##### SECTION Long_Description ##### -->
9 #GtkToolButton<!-- -->s are #GtkToolItems containing buttons.
13 Use gtk_tool_button_new() to create a new #GtkToolButton. Use
14 gtk_tool_button_new_with_stock() to create a #GtkToolButton
15 containing a stock item.
19 The label of a #GtkToolButton is determined by the properties
20 "label-widget", "label", and "stock-id". If "label-widget" is
21 non-%NULL, then that widget is used as the label. Otherwise, if
22 "label" is non-%NULL, that string is used as the label. Otherwise, if
23 "stock-id" is non-%NULL, the label is determined by the stock
24 item. Otherwise, the button does not have a label.
28 The icon of a #GtkToolButton is determined by the properties
29 "icon-widget" and "stock-id". If "icon-widget" is non-%NULL, then
30 that widget is used as the icon. Otherwise, if "stock-id" is
31 non-%NULL, the icon is determined by the stock item. Otherwise,
32 the button does not have a icon.
35 <!-- ##### SECTION See_Also ##### -->
40 <term>#GtkToolbar</term>
41 <listitem><para>The toolbar widget</para></listitem>
45 <term>#GtkMenuToolButton</term>
46 <listitem><para>A subclass of #GtkToolButton that displays on
47 the toolbar a button with an additional dropdown
48 menu</para></listitem>
52 <term>#GtkToggleToolButton</term>
53 <listitem><para>A subclass of #GtkToolButton that displays toggle
54 buttons on the toolbar</para></listitem>
58 <term>#GtkRadioToolButton</term>
59 <listitem><para>A subclass of #GtkToolButton that displays radio
60 buttons on the toolbar</para></listitem>
64 <term>#GtkSeparatorToolItem</term>
65 <listitem><para>A subclass of #GtkToolItem that separates groups of
66 items on a toolbar</para></listitem>
72 <!-- ##### SECTION Stability_Level ##### -->
75 <!-- ##### SECTION Image ##### -->
78 <!-- ##### STRUCT GtkToolButton ##### -->
80 The #GtkToolButton struct contains only private. It should only be
81 accessed with the function described below.
85 <!-- ##### SIGNAL GtkToolButton::clicked ##### -->
90 @toolbutton: the object which received the signal.
92 <!-- ##### ARG GtkToolButton:icon-name ##### -->
97 <!-- ##### ARG GtkToolButton:icon-widget ##### -->
102 <!-- ##### ARG GtkToolButton:label ##### -->
107 <!-- ##### ARG GtkToolButton:label-widget ##### -->
112 <!-- ##### ARG GtkToolButton:stock-id ##### -->
117 <!-- ##### ARG GtkToolButton:use-underline ##### -->
122 <!-- ##### ARG GtkToolButton:icon-spacing ##### -->
127 <!-- ##### FUNCTION gtk_tool_button_new ##### -->
137 <!-- ##### FUNCTION gtk_tool_button_new_from_stock ##### -->
146 <!-- ##### FUNCTION gtk_tool_button_set_label ##### -->
155 <!-- ##### FUNCTION gtk_tool_button_get_label ##### -->
164 <!-- ##### FUNCTION gtk_tool_button_set_use_underline ##### -->
173 <!-- ##### FUNCTION gtk_tool_button_get_use_underline ##### -->
182 <!-- ##### FUNCTION gtk_tool_button_set_stock_id ##### -->
191 <!-- ##### FUNCTION gtk_tool_button_get_stock_id ##### -->
200 <!-- ##### FUNCTION gtk_tool_button_set_icon_name ##### -->
209 <!-- ##### FUNCTION gtk_tool_button_get_icon_name ##### -->
218 <!-- ##### FUNCTION gtk_tool_button_set_icon_widget ##### -->
227 <!-- ##### FUNCTION gtk_tool_button_get_icon_widget ##### -->
236 <!-- ##### FUNCTION gtk_tool_button_set_label_widget ##### -->
245 <!-- ##### FUNCTION gtk_tool_button_get_label_widget ##### -->