From 9536bcb19d81ed6efc54731dc83109365049fb21 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 30 Aug 2000 05:45:04 +0000 Subject: Actually add the comp_instance struct to the instances list. We now appear 2000-08-30 JP Rosevear * cal-client/cal-client.c (add_instance): Actually add the comp_instance struct to the instances list. We now appear to able to keep events and todos between sessions. Yay! svn path=/trunk/; revision=5108 --- calendar/cal-client/cal-client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index 001c36fca7..65c0c4aea4 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1057,6 +1057,8 @@ add_instance (CalComponent *comp, time_t start, time_t end, gpointer data) ci->start = start; ci->end = end; + *list = g_list_prepend (*list, ci); + return TRUE; } @@ -1132,9 +1134,9 @@ cal_client_generate_instances (CalClient *client, CalObjType type, for (l = instances; l; l = l->next) { struct comp_instance *ci; gboolean result; - + ci = l->data; - + result = (* cb) (ci->comp, ci->start, ci->end, cb_data); if (!result) -- cgit v1.2.3