X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=views%2Fevents.c;h=56d6aab9c144ba4f26585887b2137d7a539d5fd4;hb=f7e9b46c69f454a1976b5ff471cc907756c01a7c;hp=248a942fa04870b645cfa548ab27baeb867a8bdd;hpb=bbfc6036a8553c1c10093247c705795f243daf1e;p=lackey diff --git a/views/events.c b/views/events.c index 248a942..56d6aab 100644 --- a/views/events.c +++ b/views/events.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 Andy Spencer + * Copyright (C) 2012-2013 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,14 +15,12 @@ * along with this program. If not, see . */ -#define DEBUG - #include -#include -#include -#include -#include +#include "util.h" +#include "date.h" +#include "cal.h" +#include "view.h" /* Static data */ static WINDOW *win; @@ -69,15 +67,15 @@ void events_draw(void) row++; if (newdate) { wday_t wday = day_of_week(next.year, next.month, next.day); - wattron(win, A_UNDERLINE); + wattron(win, A_BOLD); mvwprintw(win, row-line, 0, "%04d-%02d-%02d", next.year, next.month+1, next.day+1); mvwprintw(win, row-line, 13, "%s, %s %d", day_to_string(wday), month_to_string(next.month), next.day); - wattroff(win, A_UNDERLINE); + wattroff(win, A_BOLD); row++; } - event_line(win, event, row++-line, 4, COLS-2, 1); + event_line(win, event, row++-line, 4, COLS-4, SHOW_DETAILS); if (event->name && event->desc) mvwprintw(win, row++-line, 14, "%s", event->desc); cur = next;