aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-config-model.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-10 01:48:17 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-10 01:48:17 +0800
commit09438389c17a2b542d3c055e287f22fa3a1b6513 (patch)
tree2c82c36837f78fd85b8ffc4849cf76fcdcb7f968 /modules/calendar/e-cal-config-model.h
parent51e192f235cda7d70d76974ac4522280264fd011 (diff)
downloadgsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar.gz
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar.bz2
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar.lz
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar.xz
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.tar.zst
gsoc2013-evolution-09438389c17a2b542d3c055e287f22fa3a1b6513.zip
ECalConfigModel: Use G_DEFINE_DYNAMIC_TYPE.
Follow the usual GObject conventions.
Diffstat (limited to 'modules/calendar/e-cal-config-model.h')
-rw-r--r--modules/calendar/e-cal-config-model.h39
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/calendar/e-cal-config-model.h b/modules/calendar/e-cal-config-model.h
index 1c1045a906..e5d0456e23 100644
--- a/modules/calendar/e-cal-config-model.h
+++ b/modules/calendar/e-cal-config-model.h
@@ -19,12 +19,47 @@
#ifndef E_CAL_CONFIG_MODEL_H
#define E_CAL_CONFIG_MODEL_H
-#include <glib-object.h>
+#include <libebackend/libebackend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_CAL_CONFIG_MODEL \
+ (e_cal_config_model_get_type ())
+#define E_CAL_CONFIG_MODEL(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CAL_CONFIG_MODEL, ECalConfigModel))
+#define E_CAL_CONFIG_MODEL_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CAL_CONFIG_MODEL, ECalConfigModelClass))
+#define E_IS_CAL_CONFIG_MODEL(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CAL_CONFIG_MODEL))
+#define E_IS_CAL_CONFIG_MODEL_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CAL_CONFIG_MODEL))
+#define E_CAL_CONFIG_MODEL_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CAL_CONFIG_MODEL, ECalConfigModelClass))
G_BEGIN_DECLS
-void e_cal_config_model_register_type (GTypeModule *type_module);
+typedef struct _ECalConfigModel ECalConfigModel;
+typedef struct _ECalConfigModelClass ECalConfigModelClass;
+typedef struct _ECalConfigModelPrivate ECalConfigModelPrivate;
+
+struct _ECalConfigModel {
+ EExtension parent;
+ ECalConfigModelPrivate *priv;
+};
+
+struct _ECalConfigModelClass {
+ EExtensionClass parent_class;
+};
+
+GType e_cal_config_model_get_type (void) G_GNUC_CONST;
+void e_cal_config_model_type_register
+ (GTypeModule *type_module);
G_END_DECLS
#endif /* E_CAL_CONFIG_MODEL_H */
+