From ca83e6569617aa19679844986ecb929d38fc7786 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 13 May 2014 15:10:47 +0200 Subject: Pass date parameter to ui_day_update_panel() This allows for drawing appointment panels for days other than the current day. Signed-off-by: Lukas Fleischer --- src/ui-day.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ui-day.c') diff --git a/src/ui-day.c b/src/ui-day.c index 847b2da..3562637 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -923,7 +923,7 @@ void ui_day_scroll_pad_up(int nb_events_inday) } /* Updates the Appointment panel */ -void ui_day_update_panel(int which_pan) +void ui_day_update_panel(int which_pan, struct date slctd_date) { int title_xpos; int bordr = 1; @@ -931,10 +931,8 @@ void ui_day_update_panel(int which_pan) int app_width = win[APP].w - bordr; int app_length = win[APP].h - bordr - title_lines; long date; - struct date slctd_date; /* variable inits */ - slctd_date = *ui_calendar_get_slctd_day(); title_xpos = win[APP].w - (strlen(_(monthnames[slctd_date.mm - 1])) + 16); if (slctd_date.dd < 10) -- cgit v1.2.3-54-g00ecf