GtkToolButton
A GtkToolItem that displays a button.
Object Hierarchy
GObject
`-- GtkObject
      `-- GtkWidget
            `-- GtkContainer
                  `-- GtkBin
                        `-- GtkToolItem
                              `-- GtkToolButton
Direct Subclasses
Description
GtkToolButtons are GtkToolItems containing buttons.
The label of a GtkToolButton is determined by the properties label_widget, label, and stock_id. If label_widget is non-NULL, then that widget is used as the label. Otherwise, if label is non-NULL, that string is used as the label. Otherwise, if stock_id is non-NULL, the label is determined by the stock item. Otherwise, the button does not have a label.
The icon of a GtkToolButton is determined by the properties icon_widget and stock_id. If icon_widget is non-NULL, then that widget is used as the icon. Otherwise, if stock_id is non-NULL, the icon is determined by the stock item. Otherwise, the button does not have a label.
Constructors
-- Creates a new tool button.
-- Creates a new tool button based on a stock item.
Methods
get_icon_widget() Â Returns the icon widget used. get_label() Â Returns the buttons label. get_label_widget() Â Returns the label widget. get_stock_id() Â Returns the stock id. get_use_underline() Â If an underscore indicates the mnemonic. set_icon_widget() Â Sets the widget to be used as icon. set_label() Â Sets label as the label used for the tool button. set_label_widget() Â Sets the widget used as label. set_stock_id() Â Set the stock item. set_use_underline() Â Sets if an underscore is used as mnemonic indicator.
Properties
Use get_property and set_property methods to access these.
icon-widget: Â Icon widget to display in the item. label: Â Text to show in the item. label-widget: Â Widget to use as the item label. stock-id: Â The stock icon displayed on the item. use-underline: Â If an underscore indicates a mnemonic.
Signals
"clicked" Â The button has been clicked