Name

e_menu_add_items —

Synopsis

void * e_menu_add_items (emp,  
 items,  
 uifiles,  
 pixmaps,  
 freefunc,  
 data); 
EMenu *  emp;
GSList *  items;
GSList *  uifiles;
GSList *  pixmaps;
EMenuItemsFunc  freefunc;
void *  data;

Arguments

emp

An initialised EMenu.

items

A list of EMenuItems or derived structures defining a group of menu items for this menu.

uifiles

A list of EMenuUIFile objects describing all ui files associated with the items.

pixmaps

A list of EMenuPixmap objects describing all pixmaps associated with the menus.

freefunc

If supplied, called when the menu items are no longer needed.

data

user-data passed to freefunc and activate callbacks.

Description

Add new EMenuItems to the menu's. This may be called any number of times before the menu is first activated to hook onto any of the menu items defined for that view.

Return value

A handle that can be passed to remove_items as required.