aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.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.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.c')
-rw-r--r--calendar/gui/e-cal-model.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index c8b706c66e..4fc9285b2a 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -652,11 +652,10 @@ ecm_append_row (ETableModel *etm, ETableModel *source, int row)
{
ECalModelClass *model_class;
ECalModelComponent comp_data;
- ECalModel *source_model = (ECalModel *) source;
ECalModel *model = (ECalModel *) etm;
g_return_if_fail (E_IS_CAL_MODEL (model));
- g_return_if_fail (E_IS_CAL_MODEL (source_model));
+ g_return_if_fail (E_IS_TABLE_MODEL (source));
memset (&comp_data, 0, sizeof (comp_data));
comp_data.client = e_cal_model_get_default_client (model);
@@ -677,7 +676,7 @@ ecm_append_row (ETableModel *etm, ETableModel *source, int row)
/* call the class' method for filling the component */
model_class = (ECalModelClass *) G_OBJECT_GET_CLASS (model);
if (model_class->fill_component_from_model != NULL) {
- model_class->fill_component_from_model (model, &comp_data, source_model, row);
+ model_class->fill_component_from_model (model, &comp_data, source, row);
}