diff options
author | JP Rosevear <jpr@ximian.com> | 2003-11-17 06:37:13 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-11-17 06:37:13 +0800 |
commit | 8b1e261b3e451e1a28176cc1b835634a1a30d0d8 (patch) | |
tree | 71828b4730a0e6184c9bc7c222616f2ea47ab58d /calendar/gui/e-cal-model.c | |
parent | ccdc51ce37535be6efc345c160d874a1f94ea175 (diff) | |
download | gsoc2013-evolution-8b1e261b3e451e1a28176cc1b835634a1a30d0d8.tar.gz gsoc2013-evolution-8b1e261b3e451e1a28176cc1b835634a1a30d0d8.tar.zst gsoc2013-evolution-8b1e261b3e451e1a28176cc1b835634a1a30d0d8.zip |
add it via e-tasks (remove_uri_for_source): remove it via e-tasks
2003-11-16 JP Rosevear <jpr@ximian.com>
* gui/tasks-component.c (add_uri_for_source): add it via e-tasks
(remove_uri_for_source): remove it via e-tasks
(get_default_task): provide a default for editing
(impl_createControls): create the control directly
(impl_requestCreateItem): implement
* gui/gnome-cal.c (gnome_calendar_purge): don't let the two list
iterators clobber each other
* gui/e-tasks.h: add protos
* gui/e-tasks.c (e_tasks_destroy): free the client list and the
hash, disconnect signals
(e_tasks_new_task): use the default client
(e_tasks_add_todo_uri): add a uri
(e_tasks_remove_todo_uri): remove a uri
(e_tasks_set_default_uri): set default uri
(e_tasks_get_default_client): get default client
(e_tasks_delete_completed): expunge from all clients
(e_tasks_setup_view_menus): use default client uri
* gui/e-tasks.c (set_timezone): set the timezone for all clients
(e_tasks_init): set up the clients has table
* gui/e-calendar-table.etspec: yank some useless display columns
* gui/e-cal-model.c (remove_client): remove objects in reverse
order so we don't clobber ourselves
* gui/calendar-component.c: add FIXME
svn path=/trunk/; revision=23373
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r-- | calendar/gui/e-cal-model.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 5211515c9a..bd5a6ec324 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1355,8 +1355,8 @@ remove_client (ECalModel *model, ECalModelClient *client_data) /* remove all objects belonging to this client */ e_table_model_pre_change (E_TABLE_MODEL (model)); - for (i = 0; i < model->priv->objects->len; i++) { - ECalModelComponent *comp_data = (ECalModelComponent *) g_ptr_array_index (model->priv->objects, i); + for (i = model->priv->objects->len; i > 0; i--) { + ECalModelComponent *comp_data = (ECalModelComponent *) g_ptr_array_index (model->priv->objects, i - 1); g_assert (comp_data != NULL); |