1.72 <GSimpleActionGroup>

Class: <GSimpleActionGroup>

It derives from <GObject>.

<GSimpleActionGroup> is a hash table filled with <GAction> objects, implementing the <GActionGroup> and <GActionMap> interfaces.

Procedures

Method: simple-action-group:insert self action
Method: insert self 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.

self

Passed: a <GSimpleActionGroup>.

a <GSimpleActionGroup>

action

Passed: a <GAction>.

a <GAction>

Method: simple-action-group:lookup self action-name ⇒ %return
Method: lookup self action-name ⇒ %return

Looks up the action with the name action-name in the group.

If no such action exists, returns #f.

self

Passed: a <GSimpleActionGroup>.

a <GSimpleActionGroup>

action-name

Passed: a string.

the name of an action

%return

Returned: a <GAction>.

a <GAction>, or #f

Procedure: simple-action-group:new ⇒ %return

Creates a new, empty, <GSimpleActionGroup>.

%return

Returned: a <GSimpleActionGroup>.

a new <GSimpleActionGroup>

Method: simple-action-group:remove self action-name
Method: remove self action-name

Removes the named action from the action group.

If no action of this name is in the group then nothing happens.

self

Passed: a <GSimpleActionGroup>.

a <GSimpleActionGroup>

action-name

Passed: a string.

the name of the action