[Xfce4-commits] <xfce4-panel:devel> Port show desktop to new plugin api. Not resident plugin.

Nick Schermer nick at xfce.org
Tue Aug 11 20:30:21 CEST 2009


Updating branch refs/heads/devel
         to 7ae69b05a7ff78a9282bd457bb446d28e0cb0ad3 (commit)
       from 5f10279b2827932bcf0652fdefeb2ff9db51dbf4 (commit)

commit 7ae69b05a7ff78a9282bd457bb446d28e0cb0ad3
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Mar 15 15:32:56 2009 +0100

    Port show desktop to new plugin api. Not resident plugin.

 plugins/showdesktop/showdesktop.c |    6 ++----
 plugins/showdesktop/showdesktop.h |    4 +++-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/showdesktop/showdesktop.c b/plugins/showdesktop/showdesktop.c
index 9232a93..f02c56d 100644
--- a/plugins/showdesktop/showdesktop.c
+++ b/plugins/showdesktop/showdesktop.c
@@ -58,10 +58,8 @@ struct _ShowDesktopPlugin
 
 
 
-/* define and register the plugin */
-G_DEFINE_TYPE (ShowDesktopPlugin, show_desktop_plugin, XFCE_TYPE_PANEL_PLUGIN)
-
-XFCE_PANEL_PLUGIN_REGISTER_OBJECT (XFCE_TYPE_SHOW_DESKTOP_PLUGIN)
+/* define the plugin */
+XFCE_PANEL_DEFINE_PLUGIN (ShowDesktopPlugin, show_desktop_plugin)
 
 
 
diff --git a/plugins/showdesktop/showdesktop.h b/plugins/showdesktop/showdesktop.h
index db72fc3..a42e63b 100644
--- a/plugins/showdesktop/showdesktop.h
+++ b/plugins/showdesktop/showdesktop.h
@@ -34,7 +34,9 @@ typedef struct _ShowDesktopPlugin      ShowDesktopPlugin;
 #define XFCE_IS_SHOW_DESKTOP_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_SHOW_DESKTOP_PLUGIN))
 #define XFCE_SHOW_DESKTOP_PLUGIN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_SHOW_DESKTOP_PLUGIN, ShowDesktopPluginClass))
 
-GType show_desktop_plugin_get_type (void) G_GNUC_CONST;
+GType show_desktop_plugin_get_type      (void) G_GNUC_CONST;
+
+void  show_desktop_plugin_register_type (GTypeModule *type_module);
 
 G_END_DECLS
 



More information about the Xfce4-commits mailing list