Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
panel_plugins_howto [2006/12/19 18:59] – nick | panel_plugins_howto [2007/08/06 18:07] – documentation link 85.25.140.211 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Xfce Panel Plugins How To ====== | ====== Xfce Panel Plugins How To ====== | ||
{{wiki: | {{wiki: | ||
+ | |||
===== Introduction ===== | ===== Introduction ===== | ||
Line 15: | Line 16: | ||
The API documentation is installed with the panel and also available from | The API documentation is installed with the panel and also available from | ||
- | http:// | + | http:// |
===== .desktop file ===== | ===== .desktop file ===== | ||
Line 211: | Line 213: | ||
void xfce_panel_plugin_set_expand (XfcePanelPlugin *plugin, | void xfce_panel_plugin_set_expand (XfcePanelPlugin *plugin, | ||
| | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== Menu ===== | ===== Menu ===== | ||
Line 219: | Line 226: | ||
xfce_panel_plugin_add_action_widget() function. A plugin can also add additional, | xfce_panel_plugin_add_action_widget() function. A plugin can also add additional, | ||
custom menu items. | custom menu items. | ||
+ | |||
+ | **IMPORTANT: | ||
+ | is safe when running in [[http:// | ||
void | void | ||
xfce_panel_plugin_add_action_widget (XfcePanelPlugin *plugin, | xfce_panel_plugin_add_action_widget (XfcePanelPlugin *plugin, | ||
- | | + | |
void | void | ||
Line 228: | Line 238: | ||
GtkMenuItem | GtkMenuItem | ||
- | If you' | + | If your plugin has a configuration dialog you need to make that menu item |
visible and connect to the " | visible and connect to the " | ||
dialog and the " | dialog and the " | ||
Line 235: | Line 245: | ||
void xfce_panel_plugin_menu_show_configure (XfcePanelPlugin *plugin); | void xfce_panel_plugin_menu_show_configure (XfcePanelPlugin *plugin); | ||
+ | |||
Line 248: | Line 259: | ||
xfce_panel_plugin_save_location (XfcePanelPlugin *plugin, | xfce_panel_plugin_save_location (XfcePanelPlugin *plugin, | ||
| | ||
+ | |||
+ | |||
+ | |||
+ | ===== Testing and Releasing the plugin ===== | ||
+ | When you test your new plugin, use the '' | ||
+ | |||
+ | For creating a release you need to run '' | ||
===== Debugging ===== | ===== Debugging ===== | ||
One can use Valgrind to debug external plugins, using the technique described [[panel_plugin_debug|here]]. | One can use Valgrind to debug external plugins, using the technique described [[panel_plugin_debug|here]]. | ||