aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/cal-util/cal-component.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 16343be8b2..bc0a8108cf 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-26 JP Rosevear <jpr@ximian.com>
+
+ * cal-util/cal-component.c (cal_component_alarm_set_trigger): the
+ value type should be inited with ICAL_VALUE_* rather than
+ ICAL_*_VALUE because it is a param argument.
+
2001-04-26 Federico Mena Quintero <federico@ximian.com>
* gui/calendar-model.c (get_is_overdue): Replace "<" by "<=" in
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index ba0fc54731..b7aeef7a8c 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -3938,20 +3938,20 @@ cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalAlarmTrigger trigg
case CAL_ALARM_TRIGGER_RELATIVE_START:
t.duration = trigger.u.rel_duration;
t.time.is_date = -1;
- value_type = ICAL_DURATION_VALUE;
+ value_type = ICAL_VALUE_DURATION;
related = ICAL_RELATED_START;
break;
case CAL_ALARM_TRIGGER_RELATIVE_END:
t.duration = trigger.u.rel_duration;
t.time.is_date = -1;
- value_type = ICAL_DURATION_VALUE;
+ value_type = ICAL_VALUE_DURATION;
related = ICAL_RELATED_END;
break;
case CAL_ALARM_TRIGGER_ABSOLUTE:
t.time = trigger.u.abs_time;
- value_type = ICAL_DATETIME_VALUE;
+ value_type = ICAL_VALUE_DATETIME;
break;
default: