Putting it into Practise (continued)

Creating the EggMenuMerge object:

merge = egg_menu_merge_new();
egg_menu_merge_insert_action_group(merge, action_group, 0);

Adding some menus:

merge_id = egg_menu_merge_add_ui_from_file(merge, "menus.ui", &err);

Getting the menu bar:

menubar = egg_menu_merge_get_widget(merge, "Root/menu");

Removing menu items:

egg_menu_merge_remove_ui(merge, merge_id);