Putting it into Practise

Creating an action:

action = g_object_new(EGG_TYPE_ACTION,
                      "name", "quit",
                      "label", _("Quit"),
                      "tooltip", _("Quits the application"),
                      "stock_id", GTK_STOCK_QUIT,
                      NULL);

Creating an action group:

action_group = egg_action_group_new("base_actions");
egg_action_group_add_action(action_group, action);