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 <!-- ##### STRUCT GtkToolButton ##### -->
77 The #GtkToolButton struct contains only private. It should only be
78 accessed with the function described below.
82 <!-- ##### SIGNAL GtkToolButton::clicked ##### -->
87 @toolbutton: the object which received the signal.
89 <!-- ##### ARG GtkToolButton:icon-name ##### -->
94 <!-- ##### ARG GtkToolButton:icon-widget ##### -->
99 <!-- ##### ARG GtkToolButton:label ##### -->
104 <!-- ##### ARG GtkToolButton:label-widget ##### -->
109 <!-- ##### ARG GtkToolButton:stock-id ##### -->
114 <!-- ##### ARG GtkToolButton:use-underline ##### -->
119 <!-- ##### ARG GtkToolButton:icon-spacing ##### -->
124 <!-- ##### FUNCTION gtk_tool_button_new ##### -->
134 <!-- ##### FUNCTION gtk_tool_button_new_from_stock ##### -->
143 <!-- ##### FUNCTION gtk_tool_button_set_label ##### -->
152 <!-- ##### FUNCTION gtk_tool_button_get_label ##### -->
161 <!-- ##### FUNCTION gtk_tool_button_set_use_underline ##### -->
170 <!-- ##### FUNCTION gtk_tool_button_get_use_underline ##### -->
179 <!-- ##### FUNCTION gtk_tool_button_set_stock_id ##### -->
188 <!-- ##### FUNCTION gtk_tool_button_get_stock_id ##### -->
197 <!-- ##### FUNCTION gtk_tool_button_set_icon_name ##### -->
206 <!-- ##### FUNCTION gtk_tool_button_get_icon_name ##### -->
215 <!-- ##### FUNCTION gtk_tool_button_set_icon_widget ##### -->
224 <!-- ##### FUNCTION gtk_tool_button_get_icon_widget ##### -->
233 <!-- ##### FUNCTION gtk_tool_button_set_label_widget ##### -->
242 <!-- ##### FUNCTION gtk_tool_button_get_label_widget ##### -->