diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-13 15:10:47 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-13 15:10:47 +0200 |
commit | ca83e6569617aa19679844986ecb929d38fc7786 (patch) | |
tree | c722586446bc817e17eea472852a198b2c85b409 /src/ui-day.c | |
parent | bd4f4a136fc218f0854f5ee5219149ce5b0acdb3 (diff) | |
download | calcurse-ca83e6569617aa19679844986ecb929d38fc7786.zip |
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/ui-day.c')
-rw-r--r-- | src/ui-day.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |