aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-03-10 05:14:19 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-03-10 05:14:19 +0800
commitacd3bd04ead065cd90f41c51f11f9cee5361c747 (patch)
treef13ef90ac1d9de24488ff02a4b35b6952fa14038 /calendar/gui/calendar.c
parent1e7ab47d26dc1bf69ed79273f593c867c358f728 (diff)
downloadgsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar.gz
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar.bz2
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar.lz
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar.xz
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.tar.zst
gsoc2013-evolution-acd3bd04ead065cd90f41c51f11f9cee5361c747.zip
Random #ifdefs to make it build, although this file is going away.
2000-03-09 Federico Mena Quintero <federico@helixcode.com> * gui/calendar.c: Random #ifdefs to make it build, although this file is going away. * gui/Makefile.am: Removed referenes to calobj.[ch] and timeutil.[ch]. * gui/calendar-conduit.c: Fixup includes. * gui/calendar-conduit.h: Fixup includes. svn path=/trunk/; revision=2092
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r--calendar/gui/calendar.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c
index 776f38452d..74c8ddaab9 100644
--- a/calendar/gui/calendar.c
+++ b/calendar/gui/calendar.c
@@ -17,11 +17,10 @@
#include <config.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <cal-util/timeutil.h>
#include "calendar.h"
#include "alarm.h"
-#include "timeutil.h"
#include "libversit/vcc.h"
-#include "icalendar.h"
#ifdef HAVE_TZNAME
extern char *tzname[2];
@@ -41,10 +40,13 @@ calendar_new (char *title,CalendarNewOptions options)
cal = g_new0 (Calendar, 1);
cal->title = g_strdup (title);
+
+#if 0
if (options & CALENDAR_USE_ICAL)
cal->format = CAL_ICAL;
else
cal->format = CAL_VCAL;
+#endif
if ((calendar_day_begin == 0) || (calendar_day_end == 0))
calendar_set_day ();
@@ -325,15 +327,17 @@ calendar_load (Calendar *cal, char *fname)
cal->file_time = s.st_mtime;
calendar_set_day ();
-
+#if 0
switch (cal->format) {
case CAL_VCAL:
+#endif
vcal = Parse_MIME_FromFileName (fname);
if (!vcal)
return "Could not load the calendar";
calendar_load_from_vobject (cal, vcal);
cleanVObject (vcal);
cleanStrTbl ();
+#if 0
break;
/*
case CAL_ICAL:
@@ -343,6 +347,7 @@ calendar_load (Calendar *cal, char *fname)
default:
return "Unknown calendar format";
}
+#endif
return NULL;
}