11.122Class GtkToggleToolButton

A GtkToolItem containing a toggle button

Class GtkToggleToolButton

A GtkToggleToolButton is a GtkToolItem that contains a toggle button.

Methods
get_activeQueries a GtkToggleToolButton and returns its current state.
new_from_stockCreates a new GtkToggleToolButton containing the image and text from a stock item.
set_activeSets the status of the toggle tool button.
signal_toggledEmitted whenever the toggle tool button changes state.

Methods

get_active

Queries a GtkToggleToolButton and returns its current state.

GtkToggleToolButton.get_active()
ReturnTRUE 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.

new_from_stock

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
ReturnA 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.

set_active

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.

signal_toggled

Emitted whenever the toggle tool button changes state.

GtkToggleToolButton.signal_toggled()
Made with http://www.falconpl.org