diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-10-27 21:11:52 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-10-27 21:11:52 +0800 |
commit | 81a6d7f5fe9db8975d67e3fe6dae440ecd8f948c (patch) | |
tree | 4562534a977e588ef5e499924fb7e92ca84834ef /calendar/gui/e-cal-model-tasks.c | |
parent | d14abf0434d773d6aecb63a54b79af4ea468c8d3 (diff) | |
download | gsoc2013-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-tasks.c')
-rw-r--r-- | calendar/gui/e-cal-model-tasks.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 76e2e140f3..5442c92485 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -48,7 +48,7 @@ static char *ecmt_value_to_string (ETableModel *etm, int col, const void *value) static const char *ecmt_get_color_for_component (ECalModel *model, ECalModelComponent *comp_data); static void ecmt_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data, - ECalModel *source_model, gint row); + ETableModel *source_model, gint row); static GObjectClass *parent_class = NULL; @@ -970,26 +970,26 @@ ecmt_get_color_for_component (ECalModel *model, ECalModelComponent *comp_data) static void ecmt_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_TASKS (model)); g_return_if_fail (comp_data != NULL); - g_return_if_fail (E_IS_CAL_MODEL_TASKS (source_model)); + g_return_if_fail (E_IS_TABLE_MODEL (source_model)); set_completed ((ECalModelTasks *) model, comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_COMPLETED, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_COMPLETED, row)); set_due (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_DUE, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_DUE, row)); set_geo (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_GEO, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_GEO, row)); set_percent (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_PERCENT, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_PERCENT, row)); set_priority (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_PRIORITY, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_PRIORITY, row)); set_status (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_STATUS, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_STATUS, row)); set_url (comp_data, - e_table_model_value_at (E_TABLE_MODEL (source_model), E_CAL_MODEL_TASKS_FIELD_URL, row)); + e_table_model_value_at (source_model, E_CAL_MODEL_TASKS_FIELD_URL, row)); } /** |