remove_action_entries
Description:
Remove actions from a ActionMap.
This is meant as the reverse of add_action_entries.
static const GActionEntry entries[] = {
{ "quit", activate_quit },
{ "print-string", activate_print_string, "s" }
};
void
add_actions (GActionMap *map)
{
g_action_map_add_action_entries (map, entries, G_N_ELEMENTS (entries), NULL);
}
void
remove_actions (GActionMap *map)
{
g_action_map_remove_action_entries (map, entries, G_N_ELEMENTS (entries));
}
Parameters:
this |
The ActionMap |
entries |
a pointer to the first item in an array of ActionEntry structs |
n_entries |
the length of |