gactionmap: Add g_action_map_remove_action_entries()

Since we have a convenience method to add actions let's allow to remove
them just as easily. This makes resource cleanup as simple as initially
adding the entries.
This commit is contained in:
Guido Günther
2023-05-24 16:00:30 +02:00
committed by Philip Withnall
parent ac840b954f
commit b3b23072f3
4 changed files with 74 additions and 0 deletions

View File

@@ -91,6 +91,10 @@ void g_action_map_add_action_entries (GAction
const GActionEntry *entries,
gint n_entries,
gpointer user_data);
GIO_AVAILABLE_IN_2_78
void g_action_map_remove_action_entries (GActionMap *action_map,
const GActionEntry *entries,
gint n_entries);
G_END_DECLS