aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/tlacuache.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/tlacuache.c')
-rw-r--r--calendar/tlacuache.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/calendar/tlacuache.c b/calendar/tlacuache.c
index 159d8b14ca..0af24d1829 100644
--- a/calendar/tlacuache.c
+++ b/calendar/tlacuache.c
@@ -22,16 +22,36 @@
#include <config.h>
#include <libgnorba/gnorba.h>
#include <bonobo/gnome-bonobo.h>
+#include <libgnomevfs/gnome-vfs.h>
#include "cal-factory.h"
+#include "calobj.h"
/* The calendar factory */
static CalFactory *factory;
-/* The alarms code needs this */
+
+
+/* Stuff that the un-converted alarm code needs to build */
+
int debug_alarms = FALSE;
+void calendar_notify (time_t time, CalendarAlarm *which, void *data);
+
+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 }
+};
+
+void
+calendar_notify (time_t time, CalendarAlarm *which, void *data)
+{
+ g_error ("calendar_notify() called!");
+}
+
/* Creates and registers the calendar factory */
@@ -93,6 +113,11 @@ main (int argc, char **argv)
exit (1);
}
+ if (!gnome_vfs_init ()) {
+ g_message ("main(): could not initialize GNOME-VFS");
+ exit (1);
+ }
+
if (!create_cal_factory ())
exit (1);