Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev:howto:panel_plugins [2019/01/03 18:44] – [Testing and Releasing the plugin] landry | dev:howto:panel_plugins [2024/03/26 18:11] (current) – [Testing and Releasing the plugin] gael | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Xfce Panel Plugins How To ====== | ====== Xfce Panel Plugins How To ====== | ||
| - | <note tip>You can get the sample plugin | + | <note tip>You can find the sample plugin [[https://gitlab.xfce.org/ |
| ===== Introduction ===== | ===== Introduction ===== | ||
| Line 14: | Line 14: | ||
| of the panel framework. This file describes the way plugin writers should interact with this system. | of the panel framework. This file describes the way plugin writers should interact with this system. | ||
| - | The API documentation is installed with the panel and also available from | + | The [[: |
| http:// | http:// | ||
| + | |||
| Line 63: | Line 64: | ||
| required headers ('' | required headers ('' | ||
| - | #include < | + | #include < |
| ===== Plugin Registration ===== | ===== Plugin Registration ===== | ||
| - | To register a plugin with the plugin system there are two macros | + | To register a plugin with the plugin system there is one macro available that should be used, instead of using the library functions directly. |
| - | instead of using the library functions directly; one for internal plugins and one for external plugins. | + | XFCE_PANEL_PLUGIN_REGISTER(construct); |
| + | |||
| + | Older versions use the following two deprecated macros, | ||
| XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct); | XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct); | ||
| Line 275: | Line 278: | ||
| For creating a release you need to run '' | For creating a release you need to run '' | ||
| - | To help development, | + | To help development, |
| + | |||
| + | You can also directly run plugins from the source so you don't need to overwrite a plugin version from your distribution. To accomplish this, build the plugin with make and then follow these steps: | ||
| * Create a symbolic link from your plugin binary to the panel' | * Create a symbolic link from your plugin binary to the panel' | ||