Interface
GioActionMap
since: 2.32
Description
interface Gio.ActionMap : GObject.Object
The GActionMap interface is implemented by GActionGroup
implementations that operate by containing a number of
named GAction
instances, such as GSimpleActionGroup
.
One useful application of this interface is to map the names of actions from various action groups to unique, prefixed names (e.g. by prepending “app.” or “win.”). This is the motivation for the ‘Map’ part of the interface name.
Available since: 2.32
Prerequisite
In order to implement ActionMap, your type must inherit fromGObject
.
Instance methods
g_action_map_add_action_entries
A convenience function for creating multiple GSimpleAction
instances
and adding them to a GActionMap
.
since: 2.32
Interface structure
struct GioActionMapInterface {
GTypeInterface g_iface;
GAction* (* lookup_action) (
GActionMap* action_map,
const gchar* action_name
);
void (* add_action) (
GActionMap* action_map,
GAction* action
);
void (* remove_action) (
GActionMap* action_map,
const gchar* action_name
);
}
The virtual function table for GActionMap
.
Interface members
g_iface |
|
No description available. | |
lookup_action |
|
No description available. | |
add_action |
|
No description available. | |
remove_action |
|
No description available. |
Virtual methods
Gio.ActionMap.lookup_action
Looks up the action with the name action_name
in action_map
.
since: 2.32