Name

e_menu_class_add_factory —

Synopsis

EMenuFactory * e_menu_class_add_factory (klass,  
 menuid,  
 func,  
 data); 
EMenuClass *  klass;
const char *  menuid;
EMenuFactoryFunc  func;
void *  data;

Arguments

klass

An EMenuClass type to which this factory applies.

menuid

The identifier of the menu for this factory, or NULL to be called on all menus.

func

An EMenuFactoryFunc callback.

data

Callback data for func.

Description

Add a menu factory which will be called when the menu menuid is created. The factory is free to add new items as it wishes to the menu provided in the callback.

TODO

Make the menuid a pattern?

Return value

A handle to the factory.