wmshutdown: Add icon for freedesktop.org icon themes.
[dockapps.git] / wmcalendar / Src / calendar.h
blobc540ff06d7e5de812d827db7963659b41493a34f
1 #include <libical/ical.h>
2 #include <stdlib.h>
3 #include <gtk/gtk.h>
4 #include <string.h>
5 #include <sys/stat.h>
6 #include "calendarfunc.h"
7 #include "settings.h"
10 time_t modtime; /* modified time of icalendar file */
11 struct calobj* calRoot; /* 1st element in list of calendar obj*/
12 int xr, yr; /*evil hack for moving dayview window*/
13 int datetype[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn,
14 [jdn%32][1] stores jdn. */
15 struct calobj{
16 struct icaltimetype start;
17 struct icaltimetype end;
18 icalcomponent *comp;
19 int type;
20 char *text;
21 struct calobj* next;
22 struct calobj* exclude;
25 int get_datetype(int day);
26 void calendar();
27 void showDay(struct icaltimetype dt);
28 void destroy (GtkWidget * widget, gpointer data);
29 int dayevents(struct icaltimetype dt, GtkWidget *table);
31 void deleteCalObjs();
32 void addCalObj(struct icaltimetype start, struct icaltimetype end,
33 int type, const char *text, icalcomponent * d);
34 int getDayType(struct icaltimetype dt);
35 int eventOnDay(struct icaltimetype dt, struct calobj* it);
36 int calcDayType(struct icaltimetype dt);
37 char* read_stream(char *s, size_t size, void *d);
38 void checkicalversion();