aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-config-date-edit.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-10-10 01:03:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-10-10 01:03:47 +0800
commit6fd48fd4df20ebf76382ebb441e81e85be7e3719 (patch)
tree848f928e60146fa98667f1af9ade468229c1ed2e /modules/calendar/e-cal-config-date-edit.h
parent5938ad7e8f0b3cf223b41bf942d9d1a9a0a42d2e (diff)
downloadgsoc2013-evolution-6fd48fd4df20ebf76382ebb441e81e85be7e3719.tar.gz
gsoc2013-evolution-6fd48fd4df20ebf76382ebb441e81e85be7e3719.tar.zst
gsoc2013-evolution-6fd48fd4df20ebf76382ebb441e81e85be7e3719.zip
ECalConfigDateEdit: Use G_DEFINE_DYNAMIC_TYPE.
Follow the usual GObject conventions.
Diffstat (limited to 'modules/calendar/e-cal-config-date-edit.h')
-rw-r--r--modules/calendar/e-cal-config-date-edit.h39
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/calendar/e-cal-config-date-edit.h b/modules/calendar/e-cal-config-date-edit.h
index 33291201dc..eacccba0e4 100644
--- a/modules/calendar/e-cal-config-date-edit.h
+++ b/modules/calendar/e-cal-config-date-edit.h
@@ -19,12 +19,47 @@
#ifndef E_CAL_CONFIG_DATE_EDIT_H
#define E_CAL_CONFIG_DATE_EDIT_H
-#include <glib-object.h>
+#include <libebackend/libebackend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_CAL_CONFIG_DATE_EDIT \
+ (e_cal_config_date_edit_get_type ())
+#define E_CAL_CONFIG_DATE_EDIT(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_CAL_CONFIG_DATE_EDIT, ECalConfigDateEdit))
+#define E_CAL_CONFIG_DATE_EDIT_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_CAL_CONFIG_DATE_EDIT, ECalConfigDateEditClass))
+#define E_IS_CAL_CONFIG_DATE_EDIT(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_CAL_CONFIG_DATE_EDIT))
+#define E_IS_CAL_CONFIG_DATE_EDIT_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_CAL_CONFIG_DATE_EDIT))
+#define E_CAL_CONFIG_DATE_EDIT_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_CAL_CONFIG_DATE_EDIT, ECalConfigDateEditClass))
G_BEGIN_DECLS
-void e_cal_config_date_edit_register_type (GTypeModule *type_module);
+typedef struct _ECalConfigDateEdit ECalConfigDateEdit;
+typedef struct _ECalConfigDateEditClass ECalConfigDateEditClass;
+typedef struct _ECalConfigDateEditPrivate ECalConfigDateEditPrivate;
+
+struct _ECalConfigDateEdit {
+ EExtension parent;
+ ECalConfigDateEditPrivate *priv;
+};
+
+struct _ECalConfigDateEditClass {
+ EExtensionClass parent_class;
+};
+
+GType e_cal_config_date_edit_get_type (void) G_GNUC_CONST;
+void e_cal_config_date_edit_type_register
+ (GTypeModule *type_module);
G_END_DECLS
#endif /* E_CAL_CONFIG_DATE_EDIT_H */
+