aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-03-11 07:13:27 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-03-11 07:13:27 +0800
commit8c65f8861bd16321eeafac1d827d1fb4a557247c (patch)
treee035dedcf07dc165cff3996948706b8031e1327e /calendar/cal-util
parent113e9a4257b7bba09996f891f97e525d535f1af4 (diff)
downloadgsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar.gz
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar.bz2
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar.lz
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar.xz
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.tar.zst
gsoc2013-evolution-8c65f8861bd16321eeafac1d827d1fb4a557247c.zip
Initialize the alarm types here. Do not call default_alarm() anymore,
2000-03-10 Federico Mena Quintero <federico@helixcode.com> * cal-util/calobj.c (ical_new): Initialize the alarm types here. Do not call default_alarm() anymore, since that is a GUI issue. (default_alarm): Removed function. (alarm_defaults): Removed defaults data. * pcs/tlacuache.c (calendar_notify): Removed stubs for alarm_defaults, calendar_notify(), debug_alarms. svn path=/trunk/; revision=2095
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/calobj.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c
index 0c9a9207bd..2aa8b434a8 100644
--- a/calendar/cal-util/calobj.c
+++ b/calendar/cal-util/calobj.c
@@ -15,13 +15,7 @@
#include "timeutil.h"
#include "libversit/vcc.h"
-/* Default values for alarms */
-CalendarAlarm alarm_defaults[4] = {
- { ALARM_MAIL, 0, 15, ALARM_MINUTES },
- { ALARM_PROGRAM, 0, 15, ALARM_MINUTES },
- { ALARM_DISPLAY, 0, 15, ALARM_MINUTES },
- { ALARM_AUDIO, 0, 15, ALARM_MINUTES }
-};
+
static char *
ical_gen_uid (void)
@@ -67,19 +61,6 @@ ical_object_new (void)
return ico;
}
-static void
-default_alarm (iCalObject *ical, CalendarAlarm *alarm, char *def_mail, enum AlarmType type)
-{
- alarm->type = type;
- alarm->enabled = alarm_defaults[type].enabled;
- alarm->count = alarm_defaults[type].count;
- alarm->units = alarm_defaults[type].units;
- if (alarm_defaults[type].data)
- alarm->data = g_strdup (alarm_defaults[type].data);
- else
- alarm->data = g_strdup ("");
-}
-
iCalObject *
ical_new (char *comment, char *organizer, char *summary)
{
@@ -94,10 +75,10 @@ ical_new (char *comment, char *organizer, char *summary)
ico->class = g_strdup ("PUBLIC");
ico->status = g_strdup ("NEEDS ACTION");
- default_alarm (ico, &ico->dalarm, organizer, ALARM_DISPLAY);
- default_alarm (ico, &ico->palarm, organizer, ALARM_PROGRAM);
- default_alarm (ico, &ico->malarm, organizer, ALARM_MAIL);
- default_alarm (ico, &ico->aalarm, organizer, ALARM_AUDIO);
+ ico->dalarm.type = ALARM_DISPLAY;
+ ico->palarm.type = ALARM_PROGRAM;
+ ico->malarm.type = ALARM_MAIL;
+ ico->aalarm.type = ALARM_AUDIO;
return ico;
}