aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/tlacuache.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-01-25 16:06:48 +0800
committerArturo Espinosa <unammx@src.gnome.org>2000-01-25 16:06:48 +0800
commited7345eec736a39e3e37a4e76a0bdba7157270b7 (patch)
treef14cc2a91007ab3c8c8b6d44932aa3b7c1ead577 /calendar/pcs/tlacuache.c
parentfd4379ff20fe9c9e3b4f4028095b9659687002ff (diff)
downloadgsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar.gz
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar.bz2
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar.lz
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar.xz
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.tar.zst
gsoc2013-evolution-ed7345eec736a39e3e37a4e76a0bdba7157270b7.zip
Check that the listener is not nil and emit and exception if it is.
2000-01-25 Federico Mena Quintero <federico@helixcode.com> * cal-factory.c (CalFactory_load): Check that the listener is not nil and emit and exception if it is. * gnome-calendar.idl (CalFactory::load CalFactory::create): Now these raise the NilListener exception. * tlacuache.c (calendar_notify): Error stub for alarms. (alarm_defaults): Stub array. (debug_alarms): Stub variable. (main): Initialize gnome-vfs. svn path=/trunk/; revision=1627
Diffstat (limited to 'calendar/pcs/tlacuache.c')
-rw-r--r--calendar/pcs/tlacuache.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/calendar/pcs/tlacuache.c b/calendar/pcs/tlacuache.c
index 159d8b14ca..0af24d1829 100644
--- a/calendar/pcs/tlacuache.c
+++ b/calendar/pcs/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);