Panel Plugin Register Macros — Register panel plugins that are compiled as modules.
Macros to register panel plugins that are compiled as modules. Internal or
external is defined by the boolean key
in the plugin's .desktop file.
gboolean (*XfcePanelPluginCheck) (
Callback function that is run before creating a plugin. It should return
FALSE if the plugin is not available for whatever reason. The function
can be given as argument to one of the registration macros.
void (*XfcePanelPluginFunc) (
Callback function to create the plugin contents. It should be given as the argument to the registration macros.
gboolean (*XfcePanelPluginPreInit) (
Callback function that is run in an external plugin before
FALSE if the plugin is not available for whatever reason.
The function can be given as argument to one of the registration macros.
The main purpose of this callback is to allow multithreaded plugins to call
Register a panel plugin using a construct function. This is the
simplest way to register a panel plugin.
is called everytime a plugin is created.
name of the function that points to an XfcePanelPluginFunc function.
#define XFCE_PANEL_PLUGIN_REGISTER_WITH_CHECK(construct_func, check_func)
Register a panel plugin using a construct function. The
will be called before the plugin is created. If this function returns
FALSE, the plugin won't be added to the panel. For proper feedback,
you are responsible for showing a dialog why the plugin is not added
to the panel.
#define XFCE_PANEL_PLUGIN_REGISTER_FULL(construct_func, preinit_func, check_func)