diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-30 13:45:04 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-30 13:45:04 +0800 |
commit | 9536bcb19d81ed6efc54731dc83109365049fb21 (patch) | |
tree | 99638b15eef7440421eb1237acf00bdc954221f4 /calendar | |
parent | 149838c6df1ec4579b2cea7e95014f80151637f1 (diff) | |
download | gsoc2013-evolution-9536bcb19d81ed6efc54731dc83109365049fb21.tar.gz gsoc2013-evolution-9536bcb19d81ed6efc54731dc83109365049fb21.tar.zst gsoc2013-evolution-9536bcb19d81ed6efc54731dc83109365049fb21.zip |
Actually add the comp_instance struct to the instances list. We now appear
2000-08-30 JP Rosevear <jpr@helixcode.com>
* 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
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/cal-client/cal-client.c | 6 |
1 files 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) |