Gio.SimpleActionGroup¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.ActionGroup (14), Gio.ActionMap (5)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.SimpleActionGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GSimpleActionGroupis a hash table filled with [iface`Gio`.Action] objects, implementing the [iface`Gio`.ActionGroup] and [iface`Gio`.ActionMap] interfaces.New in version 2.28.
- classmethod new()[source]¶
- Returns:
a new
Gio.SimpleActionGroup- Return type:
Creates a new, empty,
Gio.SimpleActionGroup.New in version 2.28.
- add_entries(entries, user_data)[source]¶
- Parameters:
entries ([
Gio.ActionEntry]) – a pointer to the first item in an array ofGio.ActionEntrystructsuser_data (
objectorNone) – the user data for signal connections
A convenience function for creating multiple
Gio.SimpleActioninstances and adding them to the action group.New in version 2.30.
Deprecated since version 2.38: Use
Gio.ActionMap.add_action_entries()
- insert(action)[source]¶
- Parameters:
action (
Gio.Action) – aGio.Action
Adds an action to the action group.
If the action group already contains an action with the same name as action then the old action is dropped from the group.
The action group takes its own reference on action.
New in version 2.28.
Deprecated since version 2.38: Use
Gio.ActionMap.add_action()
- lookup(action_name)[source]¶
- Parameters:
action_name (
str) – the name of an action- Returns:
a
Gio.Action, orNone- Return type:
Looks up the action with the name action_name in the group.
If no such action exists, returns
None.New in version 2.28.
Deprecated since version 2.38: Use
Gio.ActionMap.lookup_action()
- remove(action_name)[source]¶
- Parameters:
action_name (
str) – the name of the action
Removes the named action from the action group.
If no action of this name is in the group then nothing happens.
New in version 2.28.
Deprecated since version 2.38: Use
Gio.ActionMap.remove_action()