struct AppletWidget {
char *privcfgpath;
char *globcfgpath;
/* you should really use the accessors for these anyway */
PanelOrientType orient;
int size;
};
Make a new applet and register us with the panel, if you
decide to cancel the load before calling applet_widget_add, you should
call applet_widget_abort_load. This widget is a simple container but you
should always use only applet_widget_add to add a child and you should
only use it once.
goad_id :
The goad_id of the applet we are starting
Returns :
A pointer to a new widget of type AppletWidget, or NULL if
something went wrong.
gboolean applet_widget_init (const char *app_id,
const char *app_version,
int argc,
char **argv,
struct poptOption *options,
unsigned int flags,
poptContext *return_ctx);
Initialize the applet library, gnome and corba.
Don't call this if your app has an applet, but your process is not
simply an applet process. This will 1) disconnect the session
manager and 2) setup stuff to call gtk_main_quit when the last applet
you create exists. And that's all really.
app_id :
applet id
app_version :
applet version
argc :
the argc passed to main
argv :
the argv passed to main
options :
extra popt options to use
flags :
extra popt flags
return_ctx :
return popt context
Returns :
A boolean, TRUE if we succeed, FALSE if an error occured