Panel Update

Jasper Huijsmans jasper at xfce.org
Fri Sep 9 16:22:09 CEST 2005


Hi all,

A quick update about the new panel framework. I just committed a rather 
large update that changes the plugin API. Hopefully it will also be a 
bit more friendly to binding writers.

I also fixed the generation of API docs to properly include signals and 
properties. You can also read it at:

http://xfce.loculus.nl/documentation/API/

Basic API from the perspective of a plugin writer:

===
  #include <libxfce4panel/xfce-panel-plugin.h>

  static void plugin_construct (XfcePanelPlugin *plugin);

  XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL (panel_construct);

  static void
  plugin_construct (XfcePanelPlugin *plugin)
  {
       /* create widgets */
       /* connect to plugin signals */
  }
===

That's it ;-)

The plugin should install a <pluginname>.desktop file in 
${prefix}/share/xfce4/panel-plugins/ . There's information about that in 
the README.Plugins file.

Language bindings should basically reimplement the 
XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL() macro, defined in 
libxfce4panel/xfce-panel-plugin.h .

So, if you have any comments about this API, please let me know now, 
before people have started to port any plugins.

Thanks,
	Jasper



More information about the Xfce4-dev mailing list