GObject.Object
Gio.SimpleActionGroup
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GSimpleActionGroup |
Class : | SimpleActionGroup |
Implements: | Gio.ActionGroup |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
Gio.SimpleActionGroup | |
priv : Gio.SimpleActionGroupPrivate
read only
|
Gio.SimpleActionGroup |
Method / Constructor | Defined By | |
---|---|---|
new Gio.SimpleActionGroup
(Object properties)
Create a new Gio.SimpleActionGroup
Create a new Gio.SimpleActionGroup
|
||
action_added
(String action_name)
:
none
Emits the GActionGroup::action-added signal on action_group.
Emits the GActionGroup::action-added signal on action_group.
This function should only be called by GActionGroup implementations.
|
Gio.ActionGroup | |
Emits the GActionGroup::action-enabled-changed signal on action_group.
Emits the GActionGroup::action-enabled-changed signal on action_group.
This function should only be called by GActionGroup implementations.
|
Gio.ActionGroup | |
action_removed
(String action_name)
:
none
Emits the GActionGroup::action-removed signal on action_group.
Emits the GActionGroup::action-removed signal on action_group.
This function should only be called by GActionGroup implementations.
|
Gio.ActionGroup | |
Emits the GActionGroup::action-state-changed signal on action_group.
Emits the GActionGroup::action-state-changed signal on action_group.
This function should only be called by GActionGroup implementations.
|
Gio.ActionGroup | |
Activate the named action within action_group.
Activate the named action within action_group.
If the action is expecting a parameter, then the correct type of parameter must be given as parameter. If the action is expecting no parameters then parameter must be NULL. See g_action_group_get_parameter_type().
|
Gio.ActionGroup | |
Request for the state of the named action within action_group to be
changed to value.
Request for the state of the named action within action_group to be
changed to value. The action must be stateful and value must be of the correct type. See g_action_group_get_state_type(). This call merely requests a change. The action may refuse to change its state or may change its state to something other than value. See g_action_group_get_state_hint(). If the value GVariant is floating, it is consumed.
|
Gio.ActionGroup | |
Checks if the named action within action_group is currently enabled.
Checks if the named action within action_group is currently enabled.
An action must be enabled in order to be activated or in order to have its state changed from outside callers.
|
Gio.ActionGroup | |
get_action_parameter_type
(String action_name)
:
GLib.VariantType
Queries the type of the parameter that must be given when activating
the named action within action_group.
Queries the type of the parameter that must be given when activating
the named action within action_group. When activating the action using g_action_group_activate(), the GVariant given to that function must be of the type returned by this function. In the case that this function returns NULL, you must not give any GVariant, but NULL instead. The parameter type of a particular action will never change but it is possible for an action to be removed and for a new action to be added with the same name but a different parameter type.
|
Gio.ActionGroup | |
get_action_state
(String action_name)
:
GLib.Variant
Queries the current state of the named action within action_group.
Queries the current state of the named action within action_group.
If the action is not stateful then NULL will be returned. If the action is stateful then the type of the return value is the type given by g_action_group_get_state_type(). The return value (if non-NULL) should be freed with g_variant_unref() when it is no longer required.
|
Gio.ActionGroup | |
get_action_state_hint
(String action_name)
:
GLib.Variant
Requests a hint about the valid range of values for the state of the
named action within action_group.
Requests a hint about the valid range of values for the state of the
named action within action_group. If NULL is returned it either means that the action is not stateful or that there is no hint about the valid range of values for the state of the action. If a GVariant array is returned then each item in the array is a returned then the tuple specifies the inclusive lower and upper bound of valid values for the state. In any case, the information is merely a hint. It may be possible to have a state value outside of the hinted range and setting a value within the range may fail. The return value (if non-NULL) should be freed with g_variant_unref() when it is no longer required.
|
Gio.ActionGroup | |
Gio.ActionGroup | ||
insert
(Action action)
:
none
Adds an action to the action group.
Adds an action to the action group.
If the action group already contains an action with the same name as The action group takes its own reference on action.
|
Gio.SimpleActionGroup | |
list_actions
()
:
Array
Lists the actions contained within action_group.
Lists the actions contained within action_group.
The caller is responsible for freeing the list with g_strfreev() when it is no longer required. actions in the groupb
|
Gio.ActionGroup | |
lookup
(String action_name)
:
Gio.Action
Looks up the action with the name action_name in the group.
Looks up the action with the name action_name in the group.
If no such action exists, returns NULL.
|
Gio.SimpleActionGroup | |
remove
(String action_name)
:
none
Removes the named action from the action group.
Removes the named action from the action group.
If no action of this name is in the group then nothing happens.
|
Gio.SimpleActionGroup |
Event | Defined By | |
---|---|---|
action_added (ActionGroup self, String action_name)
:
none
Signals that a new action was just added to the group.
Signals that a new action was just added to the group. This signal
is emitted after the action has been added and is now visible.
|
Gio.ActionGroup | |
Signals that the enabled status of the named action has changed.
Signals that the enabled status of the named action has changed.
|
Gio.ActionGroup | |
action_removed (ActionGroup self, String action_name)
:
none
Signals that an action is just about to be removed from the group.
Signals that an action is just about to be removed from the group.
This signal is emitted before the action is removed, so the action is still visible and can be queried from the signal handler.
|
Gio.ActionGroup | |
Signals that the state of the named action has changed.
Signals that the state of the named action has changed.
|
Gio.ActionGroup |