A GtkToolItem containing a toggle button
Class GtkToggleToolButton
A GtkToggleToolButton is a GtkToolItem that contains a toggle button.
Methods | |
get_active | Queries a GtkToggleToolButton and returns its current state. |
new_from_stock | Creates a new GtkToggleToolButton containing the image and text from a stock item. |
set_active | Sets the status of the toggle tool button. |
signal_toggled | Emitted whenever the toggle tool button changes state. |
Queries a GtkToggleToolButton and returns its current state.
GtkToggleToolButton.get_active()
Return | TRUE if the toggle tool button is pressed in, FALSE if not |
Returns TRUE if the toggle button is pressed in and FALSE if it is raised.
Creates a new GtkToggleToolButton containing the image and text from a stock item.
GtkToggleToolButton.new_from_stock( stock_id )
stock_id | the name of the stock item |
Return | A new GtkToggleToolButton |
Some stock ids have preprocessor macros like GTK_STOCK_OK and GTK_STOCK_APPLY.
It is an error if stock_id is not a name of a stock item.
Sets the status of the toggle tool button.
GtkToggleToolButton.set_active( is_active )
is_active | whether button should be active |
Set to TRUE if you want the GtkToggleButton to be 'pressed in', and FALSE to raise it. This action causes the toggled signal to be emitted.
Emitted whenever the toggle tool button changes state.
GtkToggleToolButton.signal_toggled()