Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
de:dev:howto:panel_plugins [2008/08/30 01:52] – created from english version w3llyde:dev:howto:panel_plugins [2008/09/05 11:19] – changed headline 1 w3lly
Line 1: Line 1:
-====== Xfce Panel Plugins How To ====== +====== Einführung in Xfce Panel Plugins ====== 
-{{wiki:package.png  }} [[http://foo-projects.org/~nick/packages/xfce4-sample-plugin.tar.bz2|Download]] the external sample plugin. You can also [[http://svn.xfce.org/svn/goodies/xfce4-sample-plugin/trunk/|checkout]] the goodies svn.+{{wiki:package.png}} Lade Sie ein [[http://foo-projects.org/~nick/packages/xfce4-sample-plugin.tar.bz2|externes Beispiel Plugin]] herunter welches auch über den [[http://svn.xfce.org/svn/goodies/xfce4-sample-plugin/trunk/|Goodies SVN]] ausgecheckt werden kann.
  
 +===== Einleitung =====
  
-===== Introduction =====+Seit der Xfce-4.4 Version gibt es zwei Arten von Plugins für das Panel. Einmal sind das die Internen, die als Module geladen werden können die das [[http://developer.gnome.org/doc/API/2.0/glib/glib-Dynamic-Loading-of-Modules.html|GModule Interface]] nutzen und die Externen Plugins die seperate Programme sind und eingebettet werden die den [[http://developer.gnome.org/doc/API/2.0/gtk/GtkPlug.html|GtkPlug]] und [[http://developer.gnome.org/doc/API/2.0/gtk/GtkSocket.html|GtkSocket]] Mechanismus nutzen.
  
-Starting from version 4.4 the Xfce Panel support two types of plugins: internal and external +Für diese Plugins wurde das Plugin-System komplett mit den restenlichen Panel-Framework neu geschriebenDiese Seite beschreibt wie Plugin-Entwickler mit diesem System arbeiten.
-The internal plugins are loadable modules, using the  +
-[[http://developer.gnome.org/doc/API/2.0/glib/glib-Dynamic-Loading-of-Modules.html|GModule]] +
-interface. External plugins are separate programs that are embedded into the panel using the  +
-[[http://developer.gnome.org/doc/API/2.0/gtk/GtkPlug.html|GtkPlug]] and  +
-[[http://developer.gnome.org/doc/API/2.0/gtk/GtkSocket.html|GtkSocket]] mechanism.+
  
-In order to handle these plugins the plugin system was entirely rewritten, along with the rest  +Die API-Dokumentation wurde auch mit dem Panel installiert und ist auch auf der Seite http://www.xfce.org/documentation/api/ zu finden.
-of the panel frameworkThis file describes the way plugin writers should interact with this system.+
  
-The API documentation is installed with the panel and also available from  +===== .desktop Dateien ===== 
-http://www.xfce.org/documentation/api/ +Neu in der Version 4.4 ist die Voraussetzung für sogenannte .desktop Dateien welche als ''pluginname.desktop'' installiert werdenSo würde ein Externes-Plugin aussehen:
- +
- +
-===== .desktop file ===== +
-New in version 4.4 is the requirement for a so called .desktop file, that is ''pluginname.desktop'',  +
-to be installedIt should look like this for an external plugin:+
  
   [Xfce Panel]   [Xfce Panel]
Line 31: Line 21:
   X-XFCE-Exec=<prefix>/libexec/xfce4/panel-plugins/<plugin_name>   X-XFCE-Exec=<prefix>/libexec/xfce4/panel-plugins/<plugin_name>
  
-For the internal plugin you would use:+Für ein Internes-Plugin würde es wie folgt aussehen:
  
   X-XFCE-Module=<plugin_name>   X-XFCE-Module=<plugin_name>
   X-XFCE-Module-Path=<prefix>/lib/xfce4/panel-plugins   X-XFCE-Module-Path=<prefix>/lib/xfce4/panel-plugins
  
-If the module should have no more than 1 instance running at the same timeyou add this line:+Wenn das Modul nicht mehr als eine Instanz gleichzeitig laufen hatfügen Sie diese Zeile hinzu:
  
   X-XFCE-Unique=true   X-XFCE-Unique=true