About all my projects
Gnome::Gio::SimpleActionGroup

Gnome::Gio::SimpleActionGroup

Description

Gnome::Gio::SimpleActionGroup is a hash table filled with Gnome::Gio::SimpleActionGroup objects, implementing the Gnome::Gio::SimpleActionGroup and Gnome::Gio::SimpleActionGroup interfaces.

Uml Diagram

No caption

Class initialization

new

:native-object

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )

new-simpleactiongroup

Creates a new, empty, Gnome::Gio::SimpleActionGroup.

method new-simpleactiongroup ( --> Gnome::Gio::SimpleActionGroup \)

Methods

add-entries

Note: The native version of this routine is deprecated in gio-lib() since version 2.38

A convenience function for creating multiple Gnome::Gio::SimpleAction instances and adding them to the action group.

method add-entries ( N-Object $entries, Int() $n-entries, gpointer $user-data )
  • $entries; a pointer to the first item in an array of Gnome::Gio::N-ActionEntry structs

  • $n-entries; the length of $entries, or -1.

  • $user-data; the user data for signal connections.

insert

Note: The native version of this routine is deprecated in gio-lib() since version 2.38

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.

method insert ( N-Object() $action )
  • $action; a Gnome::Gio::R-Action.

lookup

Note: The native version of this routine is deprecated in gio-lib() since version 2.38

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

If no such action exists, returns undefined.

method lookup ( Str $action-name --> N-Object )
  • $action-name; the name of an action.

Return value; a Gnome::Gio::R-Action, or undefined.

remove

Note: The native version of this routine is deprecated in gio-lib() since version 2.38

Removes the named action from the action group.

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

method remove ( Str $action-name )
  • $action-name; the name of the action.