aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calobj.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-18 12:02:46 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-18 12:02:46 +0800
commitf1b08663ddff6432289ca4780bc823c96d471657 (patch)
treefed1c651f292c4855550302ef94808338b9fd0dc /calendar/calobj.c
parentd79ee74dad39ee5210482aa90a7c6a7b2f0b7517 (diff)
downloadgsoc2013-evolution-f1b08663ddff6432289ca4780bc823c96d471657.tar.gz
gsoc2013-evolution-f1b08663ddff6432289ca4780bc823c96d471657.tar.zst
gsoc2013-evolution-f1b08663ddff6432289ca4780bc823c96d471657.zip
Yes.
Yes. It works. It loads, it saves, it does all that stuff. It works, even if federico complains that we did not test close. Repetition, alarms, all that stuff you all guys love. It it is there. We did minimal testing, but we know you will happilly commit a fix if you find a problem, right? Ok, we are off to a party now. Miguel svn path=/trunk/; revision=155
Diffstat (limited to 'calendar/calobj.c')
-rw-r--r--calendar/calobj.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/calendar/calobj.c b/calendar/calobj.c
index 47d8c8a97e..624a179b05 100644
--- a/calendar/calobj.c
+++ b/calendar/calobj.c
@@ -1102,3 +1102,21 @@ ical_object_compute_end (iCalObject *ico)
ico->recur->_enddate = 0;
ical_object_generate_events (ico, ico->dtstart, 0, duration_callback, &count);
}
+
+int
+alarm_compute_offset (CalendarAlarm *a)
+{
+ if (!a->enabled)
+ return -1;
+ switch (a->units){
+ case ALARM_MINUTES:
+ a->offset = a->count * 60;
+ break;
+ case ALARM_HOURS:
+ a->offset = a->count * 3600;
+ break;
+ case ALARM_DAYS:
+ a->offset = a->count * 24 * 3600;
+ }
+ return a->offset;
+}
td>1-1/+2 * - Update to 0.3.6.chinsan2007-09-192-5/+5 * - Remove the boring keymap of Backspace.chinsan2007-07-191-1/+3 * - Fix bug in anti-idle supportrafan2007-06-021-5/+6 * - Welcome X.org 7.2 \o/.flz2007-05-202-2/+1 * - Move to LOCALBASErafan2006-11-042-1/+3 * Change the following ports to my FreeBSD.org email.chinsan2006-10-031-1/+1 * - Update to 0.3.5miwi2006-09-062-6/+6 * Remove some unused patchclsung2006-04-235-45/+5 * - Update to 0.3.4.jmelo2006-04-073-19/+8 * add USE_ICONV.vanilla2006-04-021-3/+3 * Conversion to a single libtool environment.ade2006-02-232-3/+3 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-3/+3 * - remove BROKENclsung2006-01-161-2/+0 * - fix bug of LIBTOOL_EXPORT_OPTIONSclsung2006-01-141-0/+11 * BROKEN: Does not buildkris2006-01-141-0/+2 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * - Add SHA256pav2005-11-091-0/+1 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-0/+1 * Update to 0.3.3mnag2005-10-116-5/+51 * Update to 0.3.2mnag2005-09-213-3/+5 * Update to 0.3.1mnag2005-09-194-51/+12 * - drop maintainershipleeym2005-09-071-2/+1 * - Update to 0.2.6pav2005-07-278-49/+55 * - Update to 0.1.8pav2005-07-206-6/+46