Writing Plugins

Writing Plugins —

Information for plugin writers

Synopsis


#include <libxfce4panel/libxfce4panel>


#define     XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct)
#define     XFCE_PANEL_PLUGIN_REGISTER_INTERNAL(construct)

Description

Macros to register a plugin with the Xfce Panel.

Details

XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL()

#define     XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct)

Registers and initializes the plugin. This is the only thing that is required to create a panel plugin.

See also: Panel Plugin interface

construct : name of a function that can be cast to an XfcePanelPluginFunc

XFCE_PANEL_PLUGIN_REGISTER_INTERNAL()

#define     XFCE_PANEL_PLUGIN_REGISTER_INTERNAL(construct)

Registers and initializes the plugin. This is the only thing that is required to create a panel plugin.

This macro is for plugins implemented as a loadable module. Generally it is preferred to create an external plugin, for which you have to use XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL() .

See also: Panel Plugin interface

construct : name of a function that can be cast to an XfcePanelPluginFunc