[Xfce4-commits] <xfce4-panel:devel> Port separator plugin to the new api. Not a resident plugin.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:30:24 CEST 2009
Updating branch refs/heads/devel
to de3288563fd89fc3fe945d3f0cc350b2d6f15fa4 (commit)
from 08b82f862785ded84c9f6a0a61d8ed8b24154e82 (commit)
commit de3288563fd89fc3fe945d3f0cc350b2d6f15fa4
Author: Nick Schermer <nick at xfce.org>
Date: Sun Mar 15 15:44:41 2009 +0100
Port separator plugin to the new api. Not a resident plugin.
plugins/separator/separator.c | 6 ++----
plugins/separator/separator.h | 4 +++-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugins/separator/separator.c b/plugins/separator/separator.c
index 74087b2..1d2461c 100644
--- a/plugins/separator/separator.c
+++ b/plugins/separator/separator.c
@@ -92,10 +92,8 @@ enum
-/* define and register the plugin */
-G_DEFINE_TYPE (SeparatorPlugin, separator_plugin, XFCE_TYPE_PANEL_PLUGIN)
-
-XFCE_PANEL_PLUGIN_REGISTER_OBJECT (XFCE_TYPE_SEPARATOR_PLUGIN)
+/* define the plugin */
+XFCE_PANEL_DEFINE_PLUGIN (SeparatorPlugin, separator_plugin)
diff --git a/plugins/separator/separator.h b/plugins/separator/separator.h
index a6a6b25..78f4cdf 100644
--- a/plugins/separator/separator.h
+++ b/plugins/separator/separator.h
@@ -36,7 +36,9 @@ typedef enum _SeparatorPluginStyle SeparatorPluginStyle;
#define XFCE_IS_SEPARATOR_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFCE_TYPE_SEPARATOR_PLUGIN))
#define XFCE_SEPARATOR_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFCE_TYPE_SEPARATOR_PLUGIN, SeparatorPluginClass))
-GType separator_plugin_get_type (void) G_GNUC_CONST;
+GType separator_plugin_get_type (void) G_GNUC_CONST;
+
+void separator_plugin_register_type (GTypeModule *type_module);
G_END_DECLS
More information about the Xfce4-commits
mailing list