Name

e_popup_class_add_factory —

Synopsis

EPopupFactory * e_popup_class_add_factory (klass,  
 menuid,  
 func,  
 data); 
EPopupClass *  klass;
const char *  menuid;
EPopupFactoryFunc  func;
void *  data;

Arguments

klass

The EPopup derived class which you're interested in.

menuid

The identifier of the menu you're interested in, or NULL to be called for all menus on this class.

func

The factory called when the menu menuid is being created.

data

User-data for the factory callback.

Description

This is a class-static method used to register factory callbacks against specific menu's.

The factory method will be invoked before the menu is created. This way, the factory may add any additional menu items it wishes based on the context supplied in the target.

Return value

A handle to the factory which can be used to remove it later.