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 label.
35 <!-- ##### SECTION See_Also ##### -->
40 <term>#GtkToolbar</term>
41 <listitem><para>The toolbar widget</para></listitem>
45 <term>#GtkToggleToolButton</term>
46 <listitem><para>A subclass of #GtkToolButton that displays toggle
47 buttons on the toolbar</para></listitem>
51 <term>#GtkRadioToolButton</term>
52 <listitem><para>A subclass of #GtkToolButton that displays radio
53 buttons on the toolbar</para></listitem>
57 <term>#GtkSeparatorToolItem</term>
58 <listitem><para>A subclass of #GtkToolItem that separates groups of
59 items on a toolbar</para></listitem>
65 <!-- ##### STRUCT GtkToolButton ##### -->
67 The #GtkToolButton struct contains only private. It should only be
68 accessed with the function described below.
72 <!-- ##### SIGNAL GtkToolButton::clicked ##### -->
77 @toolbutton: the object which received the signal.
79 <!-- ##### ARG GtkToolButton:icon-widget ##### -->
84 <!-- ##### ARG GtkToolButton:label ##### -->
89 <!-- ##### ARG GtkToolButton:label-widget ##### -->
94 <!-- ##### ARG GtkToolButton:stock-id ##### -->
99 <!-- ##### ARG GtkToolButton:use-underline ##### -->
104 <!-- ##### FUNCTION gtk_tool_button_new ##### -->
114 <!-- ##### FUNCTION gtk_tool_button_new_from_stock ##### -->
123 <!-- ##### FUNCTION gtk_tool_button_set_label ##### -->
132 <!-- ##### FUNCTION gtk_tool_button_get_label ##### -->
141 <!-- ##### FUNCTION gtk_tool_button_set_use_underline ##### -->
150 <!-- ##### FUNCTION gtk_tool_button_get_use_underline ##### -->
159 <!-- ##### FUNCTION gtk_tool_button_set_stock_id ##### -->
168 <!-- ##### FUNCTION gtk_tool_button_get_stock_id ##### -->
177 <!-- ##### FUNCTION gtk_tool_button_set_icon_widget ##### -->
186 <!-- ##### FUNCTION gtk_tool_button_get_icon_widget ##### -->
195 <!-- ##### FUNCTION gtk_tool_button_set_label_widget ##### -->
204 <!-- ##### FUNCTION gtk_tool_button_get_label_widget ##### -->