aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/cal-util/cal-component.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b3f5f5023d..c4f1824877 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
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
+
+2001-02-05 JP Rosevear <jpr@ximian.com>
+
* gui/event-editor.c (get_widgets): get the new reminder widgets
(sync_entries): different callback data
(summary_changed_cb): take different data and handle various cases
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;
.1.2garga2008-09-234-27/+335 * - Allow the build with apache2miwi2007-07-101-1/+1 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - add php zlib supportmiwi2006-11-161-1/+1 * - Fix permissionsmiwi2006-11-141-0/+1 * - Update to 2.0.4pav2006-10-054-6/+21 * Reset maintainership of ports assigned to antonio@php.net after numerouslinimon2006-09-231-1/+1 * - Update to 2.0.2.jmelo2006-05-133-14/+56 * SHA256ifyedwin2006-01-241-0/+1 * - Don't remove mtree created symlinkspav2006-01-201-2/+0