| Top |  |  |  |  | 
This API is used to create an applet factory. You need to call one and only one of these functions to get applets working in your binary.
gboolean (*PanelAppletFactoryCallback) (PanelApplet *applet,const gchar *iid,gpointer user_data);
The type used for callbacks after. The callback will usually check that iid
is a valid applet type identifier for the applet factory, and will then fill
applet
 with widgets, connect to signals, etc.
| applet | a newly-created PanelApplet. | |
| iid | identifier of the requested applet type. | |
| user_data | user data. | 
#define PANEL_APPLET_IN_PROCESS_FACTORY(factory_id, type, callback, data)
Convenience macro providing the symbol needed to automatically register the
factory_id
 applet factory for an in-process applet.
Applet instances created by the applet factory will use applet_type
 as
GType. Unless you subclass PanelApplet, you should use PANEL_TYPE_APPLET
as applet_type
.
On creation of the applet instances, callback
 is called to setup the
applet. If callback
 returns FALSE, the creation of the applet instance is
cancelled.
| factory_id | identifier of an applet factory. | |
| type | GType of the applet this factory creates. | |
| callback |  a  | [scope call] | 
| data | callback data. | [closure] |