aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/print.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2001-01-03 00:35:57 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-01-03 00:35:57 +0800
commitb3e4ed6da61c048e670a0623f18645f5519c3cd0 (patch)
treec268921b31edfe03e295dced8325c33c43e86892 /calendar/gui/print.c
parent45f3b8b6e04845a465d6b4d06a2af876e90296ce (diff)
downloadgsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar.gz
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar.bz2
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar.lz
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar.xz
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.tar.zst
gsoc2013-evolution-b3e4ed6da61c048e670a0623f18645f5519c3cd0.zip
Unconditionally remove the client from the alarm notification system.
2001-01-01 Federico Mena Quintero <federico@helixcode.com> * gui/gnome-cal.c (gnome_calendar_destroy): Unconditionally remove the client from the alarm notification system. Removed all the obsolete alarm code. * gui/event-editor.c: Removed some crufty externs left over from Gnomecal. * gui/calendar-commands.c: #include "goto.h" Removed crufty variables left over from Gnomecal. (new_calendar): Do not take a full_name parameter. (init_username): Removed function. (init_calendar): Wheeeeeeee! Removed crufty function. (quit_cmd): Removed function. * gui/print.c (WEEK_STARTS_ON_MONDAY): Made it unconditionally FALSE because we do not use the configuration setting anyways. Sigh, all the printing code needs to be revamped. svn path=/trunk/; revision=7209
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r--calendar/gui/print.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 90d6161886..e0de3894c7 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -66,6 +66,11 @@ static const int sept_1752[42] = {
#define SEPT_1752_START 2 /* Start day within month */
#define SEPT_1752_END 20 /* End day within month */
+/* FIXME: This needs to be able to render using all the options from the new
+ * calendar configuration stuff.
+ */
+#define WEEK_STARTS_ON_MONDAY FALSE
+
struct pdinfo
{
GList *slots;
@@ -363,7 +368,7 @@ print_month_small (GnomePrintContext *pc, GnomeCalendar *gcal,
tm = *localtime (&month);
/* get month days */
- build_month(tm.tm_mon, tm.tm_year+1900, week_starts_on_monday, days, 0, 0);
+ build_month(tm.tm_mon, tm.tm_year+1900, WEEK_STARTS_ON_MONDAY, days, 0, 0);
/* build day-busy bits */
now = time_month_begin(month);
@@ -384,7 +389,7 @@ print_month_small (GnomePrintContext *pc, GnomeCalendar *gcal,
gnome_print_setrgbcolor (pc, 0,0,0);
for (x=0;x<7;x++) {
- print_text(pc, font_bold, daynames[(week_starts_on_monday?x+1:x)%7], ALIGN_CENTRE,
+ print_text(pc, font_bold, daynames[(WEEK_STARTS_ON_MONDAY?x+1:x)%7], ALIGN_CENTRE,
left+x*xpad, left+(x+1)*xpad, bottom+7*ypad, bottom+7*ypad-gnome_font_get_size(font_bold));
}
@@ -882,7 +887,7 @@ print_month_summary (GnomePrintContext *pc, GnomeCalendar *gcal, time_t whence,
tm = *localtime (&now);
/* get month days */
- build_month(tm.tm_mon, tm.tm_year+1900, week_starts_on_monday, days, 0, 0);
+ build_month(tm.tm_mon, tm.tm_year+1900, WEEK_STARTS_ON_MONDAY, days, 0, 0);
/* a little margin */
top -= 4;