|
|
|
--- a/calendar.c
|
|
|
|
+++ b/calendar.c
|
|
|
|
@@ -1,5 +1,10 @@
|
|
|
|
#include "calendar.h"
|
|
|
|
|
|
|
|
+time_t modtime;
|
|
|
|
+struct calobj* calRoot;
|
|
|
|
+int xr, yr;
|
|
|
|
+int datetype[32][2];
|
|
|
|
+
|
|
|
|
int get_datetype(int day){return datetype[day][0];}
|
|
|
|
|
|
|
|
/*------------------------------------------------------
|
|
|
|
--- a/calendarfunc.c
|
|
|
|
+++ b/calendarfunc.c
|
|
|
|
@@ -24,6 +24,7 @@
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
+int datemoon[200][2];
|
|
|
|
|
|
|
|
long persian_jdn(struct icaltimetype dt)
|
|
|
|
{
|
|
|
|
--- a/calendarfunc.h
|
|
|
|
+++ b/calendarfunc.h
|
|
|
|
@@ -70,5 +70,5 @@
|
|
|
|
|
|
|
|
int Ceil(float number);
|
|
|
|
|
|
|
|
-int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn,
|
|
|
|
+extern int datemoon[200][2]; /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn,
|
|
|
|
[jdn%32][1] stores jdn. */
|
|
|
|
--- a/calendar.h
|
|
|
|
+++ b/calendar.h
|
|
|
|
@@ -5,10 +5,10 @@
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
|
|
|
|
-time_t modtime; /* modified time of icalendar file */
|
|
|
|
-struct calobj* calRoot; /* 1st element in list of calendar obj*/
|
|
|
|
-int xr, yr; /*evil hack for moving dayview window*/
|
|
|
|
-int datetype[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn,
|
|
|
|
+extern time_t modtime; /* modified time of icalendar file */
|
|
|
|
+extern struct calobj* calRoot; /* 1st element in list of calendar obj*/
|
|
|
|
+extern int xr, yr; /*evil hack for moving dayview window*/
|
|
|
|
+extern int datetype[32][2]; /* hashtable for coloring days.[jdn%32][0] stores color of day jdn,
|
|
|
|
[jdn%32][1] stores jdn. */
|
|
|
|
struct calobj{
|
|
|
|
struct icaltimetype start;
|
|
|
|
--- a/settings.c
|
|
|
|
+++ b/settings.c
|
|
|
|
@@ -1,4 +1,14 @@
|
|
|
|
#include "settings.h"
|
|
|
|
+
|
|
|
|
+char rcfile[250];
|
|
|
|
+char icsfile[250];
|
|
|
|
+char application[250];
|
|
|
|
+int start_of_week;
|
|
|
|
+char* daystr[8];
|
|
|
|
+int appicon;
|
|
|
|
+int lang;
|
|
|
|
+int debug;
|
|
|
|
+
|
|
|
|
void set_lang(int language){lang = language;}
|
|
|
|
void setAppicon(int app){appicon = app;}
|
|
|
|
void enter_callback( GtkWidget *widget, GtkWidget *entry ){
|
|
|
|
--- a/settings.h
|
|
|
|
+++ b/settings.h
|
|
|
|
@@ -7,14 +7,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-char rcfile[250]; /* location of settings file */
|
|
|
|
-char icsfile[250]; /* location of icalendar file */
|
|
|
|
-char application[250]; /* command for starting external application */
|
|
|
|
-int start_of_week; /* defines the first day of week */
|
|
|
|
-char* daystr[8];
|
|
|
|
-int appicon; /* sets the application icon evol(0) moz(1) other(2)*/
|
|
|
|
-int lang; /* defines the language 0:english(default) 1:farsi */
|
|
|
|
-int debug; /* debug mode off(0) or on(1) */
|
|
|
|
+extern char rcfile[250]; /* location of settings file */
|
|
|
|
+extern char icsfile[250]; /* location of icalendar file */
|
|
|
|
+extern char application[250]; /* command for starting external application */
|
|
|
|
+extern int start_of_week; /* defines the first day of week */
|
|
|
|
+extern char* daystr[8];
|
|
|
|
+extern int appicon; /* sets the application icon evol(0) moz(1) other(2)*/
|
|
|
|
+extern int lang; /* defines the language 0:english(default) 1:farsi */
|
|
|
|
+extern int debug; /* debug mode off(0) or on(1) */
|
|
|
|
|
|
|
|
|
|
|
|
void destroy (GtkWidget * widget, gpointer data);
|