aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-24 09:43:07 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-24 09:43:07 +0800
commit2c7418345ced904d282ec3a70e98c81053f72806 (patch)
tree5252e3f9b6b6ceb767d5ccc753315ca212d62b5c /calendar/gui/calendar.c
parentc79a97a8e1983a8c28bb11afe95d3eb3675b15e7 (diff)
downloadgsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar.gz
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar.bz2
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar.lz
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar.xz
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.tar.zst
gsoc2013-evolution-2c7418345ced904d282ec3a70e98c81053f72806.zip
Actually save the to-do entries.
1998-04-23 Federico Mena Quintero <federico@nuclecu.unam.mx> * calendar.c (calendar_save): Actually save the to-do entries. * gncal-todo.c (simple_todo_editor): Now you can add and edit to-do entries. svn path=/trunk/; revision=191
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r--calendar/gui/calendar.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c
index f56ff082c8..dc480e3dfd 100644
--- a/calendar/gui/calendar.c
+++ b/calendar/gui/calendar.c
@@ -320,12 +320,24 @@ calendar_save (Calendar *cal, char *fname)
addPropValue (vcal, VCVersionProp, VERSION);
cal->temp = vcal;
- for (l = cal->events; l; l = l->next){
+ /* Events */
+
+ for (l = cal->events; l; l = l->next) {
VObject *obj;
obj = ical_object_to_vobject ((iCalObject *) l->data);
addVObjectProp (vcal, obj);
}
+
+ /* To-do entries */
+
+ for (l = cal->todo; l; l = l->next) {
+ VObject *obj;
+
+ obj = ical_object_to_vobject ((iCalObject *) l->data);
+ addVObjectProp (vcal, obj);
+ }
+
writeVObjectToFile (fname, vcal);
cleanVObject (vcal);
cleanStrTbl ();