Class: Gio::SimpleActionGroup

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#add_entries(entries, n_entries, user_data) ⇒ nil

A convenience function for creating multiple GSimple::Action instances and adding them to the action group.

Parameters:

  • entries (Array<Gio::ActionEntry>)

    a pointer to the first item in an array of GAction::Entry structs

  • n_entries (Integer)

    the length of entries, or -1

  • user_data (GObject)

    the user data for signal connections

Returns:

  • (nil)

#insert(action) ⇒ nil

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.

Parameters:

Returns:

  • (nil)

#lookup(action_name) ⇒ Gio::Action

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

If no such action exists, returns nil.

Parameters:

  • action_name (String)

    the name of an action

Returns:

#newGio::SimpleActionGroup

Creates a new, empty, GSimple::ActionGroup.

Returns:

#remove(action_name) ⇒ nil

Removes the named action from the action group.

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

Parameters:

  • action_name (String)

    the name of the action

Returns:

  • (nil)