Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:howto:panel_plugins [2011/05/16 19:42] – [Xfce Panel Plugins How To] perberos | dev:howto:panel_plugins [2017/10/17 22:50] – Fix links in introduction andreashae | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Xfce Panel Plugins How To ====== | ====== Xfce Panel Plugins How To ====== | ||
- | {{wiki: | + | <note tip>You can get the sample plugin |
===== Introduction ===== | ===== Introduction ===== | ||
Line 7: | Line 6: | ||
Starting from version 4.4 the Xfce Panel support two types of plugins: internal and external. | Starting from version 4.4 the Xfce Panel support two types of plugins: internal and external. | ||
The internal plugins are loadable modules, using the | The internal plugins are loadable modules, using the | ||
- | [[http:// | + | [[https:// |
interface. External plugins are separate programs that are embedded into the panel using the | interface. External plugins are separate programs that are embedded into the panel using the | ||
- | [[http:// | + | [[https:// |
- | [[http:// | + | [[https:// |
In order to handle these plugins the plugin system was entirely rewritten, along with the rest | In order to handle these plugins the plugin system was entirely rewritten, along with the rest | ||
Line 45: | Line 44: | ||
X-XFCE-Unique=true | X-XFCE-Unique=true | ||
+ | If the plugin is compatible with GTK+ 3, you need to add this line: | ||
+ | |||
+ | X-XFCE-API=2.0 | ||
===== Library ===== | ===== Library ===== | ||
Line 272: | Line 274: | ||
For creating a release you need to run '' | For creating a release you need to run '' | ||
+ | |||
+ | To help development, | ||
+ | |||
+ | * Create a symbolic link from your plugin binary to the panel' | ||
+ | * Copy ''/ | ||
+ | * Edit the latter to point at ' | ||
+ | * If you're porting a plugin to GTK+ 3, make sure to add '' | ||
+ | |||
+ | Now the ' | ||
===== Debugging ===== | ===== Debugging ===== | ||
- | One can use Valgrind to debug external plugins, using the technique described [[:howto/panel_plugin_debug|here]]. | + | One can use GDB and Valgrind to debug external plugins, using the technique described [[https:// |