aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-02 04:32:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-11-05 02:18:34 +0800
commita2e309c2a1735bd68b315aa971388e20db3a8621 (patch)
treed9da4a5546d45406b693e2893363a911b7eddd4b /calendar/gui/comp-util.c
parent6fdbedf62c34a78d403d0376a4403b2196da0385 (diff)
downloadgsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.gz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.bz2
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.lz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.xz
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.tar.zst
gsoc2013-evolution-a2e309c2a1735bd68b315aa971388e20db3a8621.zip
Rename CalUnits to EDurationType.
And move the definition to e-util-enums.h so we get a GType for it.
Diffstat (limited to 'calendar/gui/comp-util.c')
-rw-r--r--calendar/gui/comp-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index 2254d49cf6..d0182a0f8d 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -290,7 +290,7 @@ cal_comp_event_new_with_defaults (ECal *client, gboolean all_day)
icalcomponent *icalcomp;
ECalComponent *comp;
gint interval;
- CalUnits units;
+ EDurationType units;
ECalComponentAlarm *alarm;
icalproperty *icalprop;
ECalComponentAlarmTrigger trigger;
@@ -331,15 +331,15 @@ cal_comp_event_new_with_defaults (ECal *client, gboolean all_day)
trigger.u.rel_duration.is_neg = TRUE;
switch (units) {
- case CAL_MINUTES:
+ case E_DURATION_MINUTES:
trigger.u.rel_duration.minutes = interval;
break;
- case CAL_HOURS:
+ case E_DURATION_HOURS:
trigger.u.rel_duration.hours = interval;
break;
- case CAL_DAYS:
+ case E_DURATION_DAYS:
trigger.u.rel_duration.days = interval;
break;