diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:22:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:22:32 +0800 |
commit | 6ff314b9cc64c6a409f61913d40e1e935439a46c (patch) | |
tree | 423306d7f315ab72dbc34d9df87657ba6e808af5 /calendar/gui/e-calendar-table-config.c | |
parent | 66152fe6537418489c2186a5e5c269c6e7c81db3 (diff) | |
download | gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.gz gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.bz2 gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.lz gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.xz gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.zst gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/e-cal-list-view-config.c: convert to G_DEFINE_TYPE
* gui/e-cal-list-view.c: ditto
* gui/e-cal-model-calendar.c: ditto
* gui/e-cal-model-tasks.c: ditto
* gui/e-cal-model.c: ditto
* gui/e-calendar-table-config.c: ditto
* gui/e-calendar-table.c: ditto
* gui/e-calendar-view.c: ditto
svn path=/trunk/; revision=27580
Diffstat (limited to 'calendar/gui/e-calendar-table-config.c')
-rw-r--r-- | calendar/gui/e-calendar-table-config.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/calendar/gui/e-calendar-table-config.c b/calendar/gui/e-calendar-table-config.c index 25dd3d825d..ebe148b4fd 100644 --- a/calendar/gui/e-calendar-table-config.c +++ b/calendar/gui/e-calendar-table-config.c @@ -32,14 +32,14 @@ struct _ECalendarTableConfigPrivate { GList *notifications; }; -static GObjectClass *parent_class = NULL; - /* Property IDs */ enum props { PROP_0, PROP_TABLE }; +G_DEFINE_TYPE (ECalendarTableConfig, e_calendar_table_config, G_TYPE_OBJECT); + static void e_calendar_table_config_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { @@ -88,8 +88,8 @@ e_calendar_table_config_dispose (GObject *object) e_calendar_table_config_set_table (table_config, NULL); - if (G_OBJECT_CLASS (parent_class)->dispose) - G_OBJECT_CLASS (parent_class)->dispose (object); + if (G_OBJECT_CLASS (e_calendar_table_config_parent_class)->dispose) + G_OBJECT_CLASS (e_calendar_table_config_parent_class)->dispose (object); } static void @@ -102,8 +102,8 @@ e_calendar_table_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_calendar_table_config_parent_class)->finalize) + G_OBJECT_CLASS (e_calendar_table_config_parent_class)->finalize (object); } static void @@ -112,8 +112,6 @@ e_calendar_table_config_class_init (ECalendarTableConfigClass *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_calendar_table_config_set_property; gobject_class->get_property = e_calendar_table_config_get_property; @@ -126,15 +124,12 @@ e_calendar_table_config_class_init (ECalendarTableConfigClass *klass) } static void -e_calendar_table_config_init (ECalendarTableConfig *table_config, ECalendarTableConfigClass *klass) +e_calendar_table_config_init (ECalendarTableConfig *table_config) { table_config->priv = g_new0 (ECalendarTableConfigPrivate, 1); } -E_MAKE_TYPE (e_calendar_table_config, "ECalendarTableConfig", ECalendarTableConfig, e_calendar_table_config_class_init, - e_calendar_table_config_init, G_TYPE_OBJECT); - ECalendarTableConfig * e_calendar_table_config_new (ECalendarTable *table) { |