diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:36:27 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:36:27 +0800 |
commit | 086338bb035c96491b792bd93f65a94d1f236916 (patch) | |
tree | bf14d53b366e260b5018646b26d3edbfdee68983 /calendar/gui/e-cell-date-edit-config.c | |
parent | d976bf57c403c11f800ad49340466146fd56a6eb (diff) | |
download | gsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.tar.gz gsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.tar.zst gsoc2013-evolution-086338bb035c96491b792bd93f65a94d1f236916.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/e-cell-date-edit-config.c: convert to G_DEFINE_TYPE
* gui/e-cell-date-edit-text.c: ditto
* gui/e-comp-editor-registry.c: ditto
* gui/e-date-edit-config.c: ditto
* gui/e-mini-calendar-config.c: ditto
svn path=/trunk/; revision=27583
Diffstat (limited to 'calendar/gui/e-cell-date-edit-config.c')
-rw-r--r-- | calendar/gui/e-cell-date-edit-config.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/calendar/gui/e-cell-date-edit-config.c b/calendar/gui/e-cell-date-edit-config.c index a8c607a43c..0af909eb76 100644 --- a/calendar/gui/e-cell-date-edit-config.c +++ b/calendar/gui/e-cell-date-edit-config.c @@ -32,14 +32,14 @@ struct _ECellDateEditConfigPrivate { GList *notifications; }; -static GObjectClass *parent_class = NULL; - /* Property IDs */ enum props { PROP_0, PROP_CELL, }; +G_DEFINE_TYPE (ECellDateEditConfig, e_cell_date_edit_config, G_TYPE_OBJECT); + static void e_cell_date_edit_config_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { @@ -88,8 +88,8 @@ e_cell_date_edit_config_dispose (GObject *object) e_cell_date_edit_config_set_cell (view_config, NULL); - if (G_OBJECT_CLASS (parent_class)->dispose) - G_OBJECT_CLASS (parent_class)->dispose (object); + if (G_OBJECT_CLASS (e_cell_date_edit_config_parent_class)->dispose) + G_OBJECT_CLASS (e_cell_date_edit_config_parent_class)->dispose (object); } static void @@ -102,8 +102,8 @@ e_cell_date_edit_config_finalize (GObject *object) g_free (priv); - if (G_OBJECT_CLASS (parent_class)->finalize) - G_OBJECT_CLASS (parent_class)->finalize (object); + if (G_OBJECT_CLASS (e_cell_date_edit_config_parent_class)->finalize) + G_OBJECT_CLASS (e_cell_date_edit_config_parent_class)->finalize (object); } static void @@ -112,8 +112,6 @@ e_cell_date_edit_config_class_init (ECellDateEditConfigClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GParamSpec *spec; - parent_class = g_type_class_peek_parent (klass); - /* Method override */ gobject_class->set_property = e_cell_date_edit_config_set_property; gobject_class->get_property = e_cell_date_edit_config_get_property; @@ -126,15 +124,12 @@ e_cell_date_edit_config_class_init (ECellDateEditConfigClass *klass) } static void -e_cell_date_edit_config_init (ECellDateEditConfig *view_config, ECellDateEditConfigClass *klass) +e_cell_date_edit_config_init (ECellDateEditConfig *view_config) { view_config->priv = g_new0 (ECellDateEditConfigPrivate, 1); } -E_MAKE_TYPE (e_cell_date_edit_config, "ECellDateEditConfig", ECellDateEditConfig, e_cell_date_edit_config_class_init, - e_cell_date_edit_config_init, G_TYPE_OBJECT); - ECellDateEditConfig * e_cell_date_edit_config_new (ECellDateEdit *cell) { |