diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-15 21:49:32 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-18 11:03:13 +0200 |
commit | cf1565648bde10103b1aae14a253b3e13bb380db (patch) | |
tree | 62c87a42dc011180b2b06d419b6c5d14560dbde4 /src/calcurse.h | |
parent | 655218b7df40b3e159119933a4fa18efca2ff940 (diff) | |
download | calcurse-cf1565648bde10103b1aae14a253b3e13bb380db.zip |
ui-calendar: Use scroll window implementation
Make use of the generic scroll window implementation for the calendar
view. Note that this is useful despite the panel not needing a scroll
bar, since the scroll window functions can be used to draw the panel
border and take care of relative positions.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index d123269..2fc97c8 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -667,7 +667,7 @@ void ui_calendar_init_slctd_day(void); struct date *ui_calendar_get_slctd_day(void); long ui_calendar_get_slctd_day_sec(void); void ui_calendar_monthly_view_cache_set_invalid(void); -void ui_calendar_update_panel(struct window *); +void ui_calendar_update_panel(void); void ui_calendar_goto_today(void); void ui_calendar_change_day(int); void ui_calendar_move(enum move, int); @@ -1056,6 +1056,7 @@ void vars_init(void); /* wins.c */ extern struct window win[NBWINS]; +extern struct scrollwin sw_cal; extern struct listbox lb_todo; unsigned wins_nbar_lock(void); void wins_nbar_unlock(void); |