Gio.SimpleActionGroup

g GObject.GInterface GObject.GInterface Gio.ActionGroup Gio.ActionGroup GObject.GInterface->Gio.ActionGroup Gio.ActionMap Gio.ActionMap GObject.GInterface->Gio.ActionMap GObject.Object GObject.Object Gio.SimpleActionGroup Gio.SimpleActionGroup GObject.Object->Gio.SimpleActionGroup Gio.ActionGroup->Gio.SimpleActionGroup Gio.ActionMap->Gio.SimpleActionGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.ActionGroup (14), Gio.ActionMap (5)

Structs:

GObject.ObjectClass (5)

class

new ()

add_entries (entries, user_data)

insert (action)

lookup (action_name)

remove (action_name)

Virtual Methods

Inherited:

GObject.Object (7), Gio.ActionGroup (14), Gio.ActionMap (3)

Properties

None

Signals

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Fields

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Gio.SimpleActionGroup(**kwargs)
Bases:

GObject.Object, Gio.ActionGroup, Gio.ActionMap

Abstract:

No

Structure:

Gio.SimpleActionGroupClass

GSimpleActionGroup is 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:

Gio.SimpleActionGroup

Creates a new, empty, Gio.SimpleActionGroup.

New in version 2.28.

add_entries(entries, user_data)[source]
Parameters:

A convenience function for creating multiple Gio.SimpleAction instances 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) – a Gio.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, or None

Return type:

Gio.Action

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()