[totem/peas-0.5.4: 3/4] Move more code into TOTEM_PLUGIN_REGISTER
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/peas-0.5.4: 3/4] Move more code into TOTEM_PLUGIN_REGISTER
- Date: Fri, 6 Aug 2010 15:11:38 +0000 (UTC)
commit 99cc9cde1823c1e1af4f22ab694ce0e4a3a5281b
Author: Philip Withnall <philip tecnocode co uk>
Date: Thu Aug 5 10:08:15 2010 +0100
Move more code into TOTEM_PLUGIN_REGISTER
src/plugins/totem-plugin.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/totem-plugin.h b/src/plugins/totem-plugin.h
index 7392304..45c2244 100644
--- a/src/plugins/totem-plugin.h
+++ b/src/plugins/totem-plugin.h
@@ -41,6 +41,16 @@ G_BEGIN_DECLS
static void impl_deactivate (PeasActivatable *plugin); \
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); \
static void peas_activatable_iface_init (PeasActivatableInterface *iface); \
+ GType type_name##_get_type (void) G_GNUC_CONST; \
+ \
+ typedef struct { \
+ PeasExtensionBase parent; \
+ TypeName##Private *priv; \
+ } TypeName; \
+ \
+ typedef struct { \
+ PeasExtensionBaseClass parent_class; \
+ } TypeName##Class; \
\
G_DEFINE_DYNAMIC_TYPE_EXTENDED (TypeName, \
type_name, \
@@ -62,6 +72,12 @@ G_BEGIN_DECLS
} \
\
static void \
+ type_name##_init (TypeName *self) \
+ { \
+ self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, TYPE_NAME, TypeName##Private); \
+ } \
+ \
+ static void \
type_name##_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) \
{ \
TypeName##Private *priv = G_TYPE_INSTANCE_GET_PRIVATE (object, TYPE_NAME, TypeName##Private); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]