aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model-calendar.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-10-27 21:11:52 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-10-27 21:11:52 +0800
commit81a6d7f5fe9db8975d67e3fe6dae440ecd8f948c (patch)
tree4562534a977e588ef5e499924fb7e92ca84834ef /calendar/gui/e-cal-model-calendar.c
parentd14abf0434d773d6aecb63a54b79af4ea468c8d3 (diff)
downloadgsoc2013-evolution-81a6d7f5fe9db8975d67e3fe6dae440ecd8f948c.tar.gz
gsoc2013-evolution-81a6d7f5fe9db8975d67e3fe6dae440ecd8f948c.tar.zst
gsoc2013-evolution-81a6d7f5fe9db8975d67e3fe6dae440ecd8f948c.zip
changed fill_component_from_model virtual method to get an ETableModel,
2003-10-27 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-model.h: changed fill_component_from_model virtual method to get an ETableModel, not an ECalModel. * gui/e-cal-model.c (ecm_append_row): the source model sent from ETable is an ETableModel, not an ECalModel. * gui/e-cal-model-calendar.c (ecmc_fill_component_from_model): get an ETableModel for the 'source_model' argument. * gui/e-cal-model-tasks.c (ecmt_fill_component_from_model): ditto. svn path=/trunk/; revision=23082
Diffstat (limited to 'calendar/gui/e-cal-model-calendar.c')
-rw-r--r--calendar/gui/e-cal-model-calendar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c
index 593d342e70..fc44d29862 100644
--- a/calendar/gui/e-cal-model-calendar.c
+++ b/calendar/gui/e-cal-model-calendar.c
@@ -44,7 +44,7 @@ static gboolean ecmc_value_is_empty (ETableModel *etm, int col, const void *valu
static char *ecmc_value_to_string (ETableModel *etm, int col, const void *value);
static void ecmc_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data,
- ECalModel *source_model, gint row);
+ ETableModel *source_model, gint row);
static GObjectClass *parent_class = NULL;
@@ -441,18 +441,18 @@ ecmc_value_to_string (ETableModel *etm, int col, const void *value)
static void
ecmc_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data,
- ECalModel *source_model, gint row)
+ ETableModel *source_model, gint row)
{
g_return_if_fail (E_IS_CAL_MODEL_CALENDAR (model));
g_return_if_fail (comp_data != NULL);
- g_return_if_fail (E_IS_CAL_MODEL_CALENDAR (source_model));
+ g_return_if_fail (E_IS_TABLE_MODEL (source_model));
set_dtend (comp_data,
- e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_CALENDAR_FIELD_DTEND, row));
+ e_table_model_value_at (source_model, E_CAL_MODEL_CALENDAR_FIELD_DTEND, row));
set_location (comp_data,
- e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_CALENDAR_FIELD_LOCATION, row));
+ e_table_model_value_at (source_model, E_CAL_MODEL_CALENDAR_FIELD_LOCATION, row));
set_transparency (comp_data,
- e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_CALENDAR_FIELD_TRANSPARENCY, row));
+ e_table_model_value_at (source_model, E_CAL_MODEL_CALENDAR_FIELD_TRANSPARENCY, row));
}
/**