diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-01 10:53:20 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-02-20 23:04:25 +0800 |
commit | 23f5773903d64a554d977ae7d0ebbaca73528f1f (patch) | |
tree | 104e1a59da8bf96b004bce204b79f47bbe0a6d13 /calendar/gui/e-cal-model-calendar.c | |
parent | 49bc4c2d765ee1780c23fdc9f42152850dabb220 (diff) | |
download | gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.gz gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.tar.zst gsoc2013-evolution-23f5773903d64a554d977ae7d0ebbaca73528f1f.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'calendar/gui/e-cal-model-calendar.c')
-rw-r--r-- | calendar/gui/e-cal-model-calendar.c | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c index 6a1493f01a..0c59a1212e 100644 --- a/calendar/gui/e-cal-model-calendar.c +++ b/calendar/gui/e-cal-model-calendar.c @@ -35,11 +35,6 @@ #include "dialogs/recur-comp.h" #include "dialogs/send-comp.h" -struct _ECalModelCalendarPrivate { - guint reserved; -}; - -static void e_cal_model_calendar_finalize (GObject *object); static gint ecmc_column_count (ETableModel *etm); static gpointer ecmc_value_at (ETableModel *etm, gint col, gint row); static void ecmc_set_value_at (ETableModel *etm, gint col, gint row, gconstpointer value); @@ -56,13 +51,10 @@ static void ecmc_fill_component_from_model (ECalModel *model, ECalModelComponent G_DEFINE_TYPE (ECalModelCalendar, e_cal_model_calendar, E_TYPE_CAL_MODEL) static void -e_cal_model_calendar_class_init (ECalModelCalendarClass *klass) +e_cal_model_calendar_class_init (ECalModelCalendarClass *class) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); - ETableModelClass *etm_class = E_TABLE_MODEL_CLASS (klass); - ECalModelClass *model_class = E_CAL_MODEL_CLASS (klass); - - object_class->finalize = e_cal_model_calendar_finalize; + ETableModelClass *etm_class = E_TABLE_MODEL_CLASS (class); + ECalModelClass *model_class = E_CAL_MODEL_CLASS (class); etm_class->column_count = ecmc_column_count; etm_class->value_at = ecmc_value_at; @@ -80,32 +72,9 @@ e_cal_model_calendar_class_init (ECalModelCalendarClass *klass) static void e_cal_model_calendar_init (ECalModelCalendar *model) { - ECalModelCalendarPrivate *priv; - - priv = g_new0 (ECalModelCalendarPrivate, 1); - model->priv = priv; - e_cal_model_set_component_kind (E_CAL_MODEL (model), ICAL_VEVENT_COMPONENT); } -static void -e_cal_model_calendar_finalize (GObject *object) -{ - ECalModelCalendarPrivate *priv; - ECalModelCalendar *model = (ECalModelCalendar *) object; - - g_return_if_fail (E_IS_CAL_MODEL_CALENDAR (model)); - - priv = model->priv; - if (priv) { - g_free (priv); - model->priv = NULL; - } - - /* Chain up to parent's finalize() method. */ - G_OBJECT_CLASS (e_cal_model_calendar_parent_class)->finalize (object); -} - /* ETableModel methods */ static gint ecmc_column_count (ETableModel *etm) |