aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-02-06 07:58:50 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-02-06 07:58:50 +0800
commit08b789cec1c3a110da0e1ec0e829015334715ca0 (patch)
tree0039b7ca15673ec2bf2a7adbb73bf8c0c6f6e1dc /calendar/cal-util
parentc854c40b396fe9a07a55c05ba0c173d1fd628bad (diff)
downloadgsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.tar.gz
gsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.tar.zst
gsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.zip
Set the time and duration values in the trigger to null by default
2001-02-05 JP Rosevear <jpr@ximian.com> * cal-util/cal-component.c (cal_component_alarm_set_trigger): Set the time and duration values in the trigger to null by default (cal_component_free_alarm_uids): properly free the list of alarm uids svn path=/trunk/; revision=8005
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-component.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index 5cba22a635..de7a768a17 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -3647,7 +3647,7 @@ cal_component_get_alarm (CalComponent *comp, const char *auid)
void
cal_component_free_alarm_uids (GList *alarm_uids)
{
-
+ g_list_foreach (alarm_uids, (GFunc)g_free, NULL);
}
/**
@@ -3918,6 +3918,8 @@ cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalAlarmTrigger trigg
related = ICAL_RELATED_START; /* Keep GCC happy */
+ t.time = icaltime_null_time ();
+ t.duration = icaldurationtype_null_duration ();
switch (trigger.type) {
case CAL_ALARM_TRIGGER_RELATIVE_START:
t.duration = trigger.u.rel_duration;