11.96Class GtkRadioAction

An action of which only one in a group can be active

Class GtkRadioAction( name, value, [label],[tooltip],[stock_id] )
name A unique name for the action
value (integer) The value which get_current_value() should return if this action is selected.
label The label displayed in menu items and on buttons
tooltip A tooltip for the action
stock_id The stock icon to display in widgets representing the action

A GtkRadioAction is similar to GtkRadioMenuItem. A number of radio actions can be linked together so that only one may be active at any one time.

To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel().

Methods
get_current_valueObtains the value property of the currently active member of the group to which action belongs.
set_current_valueSets the currently active group member to the member with value property current_value.
signal_changedConnect a VMSlot to the action changed signal and return it

Methods

get_current_value

Obtains the value property of the currently active member of the group to which action belongs.

GtkRadioAction.get_current_value()
ReturnThe value of the currently active group member

set_current_value

Sets the currently active group member to the member with value property current_value.

GtkRadioAction.set_current_value( current_value )
current_value the new value

signal_changed

Connect a VMSlot to the action changed signal and return it

GtkRadioAction.signal_changed()

The changed signal is emitted on every member of a radio group when the active member is changed. The signal gets emitted after the activate signals for the previous and current active members.

The callback function gets a GtkRadioAction as argument, that is the member of actions group which has just been activated.

Made with http://www.falconpl.org