Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
dev:howto:panel_plugins [2019/01/03 18:44] – [Testing and Releasing the plugin] landrydev:howto:panel_plugins [2024/02/20 11:29] – [Xfce Panel Plugins How To] update links gael
Line 1: Line 1:
 ====== Xfce Panel Plugins How To ====== ====== Xfce Panel Plugins How To ======
-<note tip>You can get the sample plugin from [[https://git.xfce.org/panel-plugins/xfce4-sample-plugin/|git]].</note>+<note tip>You can find the sample plugin [[https://gitlab.xfce.org/panel-plugins/xfce4-sample-plugin|on GitLab]]. There is also a [[https://gitlab.xfce.org/itsManjeet/xfce4-python-sample-plugin|Python version]].</note>
  
 ===== 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 [[:api_documentation|API documentation]] is installed with the panel and also available from 
 http://www.xfce.org/documentation/api/ http://www.xfce.org/documentation/api/
 +
  
  
Line 63: Line 64:
 required headers (''gtk'' and ''libxfce4util''): required headers (''gtk'' and ''libxfce4util''):
  
-  #include <libxfce4panel/xfce-panel-plugin.h>+  #include <libxfce4panel/libxfce4panel.h>
  
 ===== Plugin Registration ===== ===== Plugin Registration =====
  
-To register a plugin with the plugin system there are two macros available that should be used,  +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, one for internal plugins and one for external plugins.
  
   XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct);   XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL(construct);