diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1999-08-31 06:36:43 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-08-31 06:36:43 +0800 |
commit | a5dc758170c40d86ee361f607eae62aa6e7509d8 (patch) | |
tree | 97b036b15f32713a5a1cb86a19784877b0d4f5d9 /calendar/calendar.c | |
parent | 122f27a2aae0c712339b39bd3b7581624b8a03b5 (diff) | |
download | gsoc2013-evolution-a5dc758170c40d86ee361f607eae62aa6e7509d8.tar.gz gsoc2013-evolution-a5dc758170c40d86ee361f607eae62aa6e7509d8.tar.zst gsoc2013-evolution-a5dc758170c40d86ee361f607eae62aa6e7509d8.zip |
Modify the object->last_mod field. (calendar_add_object): Ditto.
1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* calendar.c (calendar_object_changed): Modify the
object->last_mod field.
(calendar_add_object): Ditto.
Closes bug #676
* main.c (save_calendar_cmd): Fix problem in which we warned the
user about the calendar being modified the first time the calendar
was used.
svn path=/trunk/; revision=1150
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r-- | calendar/calendar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c index dfeb1d6cc8..e6c6dddf59 100644 --- a/calendar/calendar.c +++ b/calendar/calendar.c @@ -133,7 +133,7 @@ calendar_add_object (Calendar *cal, iCalObject *obj) cal->modified = TRUE; - /* FIXME: do we have to set the last_mod field in the object? */ + obj->last_mod = time (NULL); } void @@ -504,6 +504,8 @@ calendar_get_events_in_range (Calendar *cal, time_t start, time_t end) void calendar_object_changed (Calendar *cal, iCalObject *obj, int flags) { + obj->last_mod = time (NULL); + if (!(flags & CHANGE_DATES)) return; |