diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-18 09:47:19 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-18 11:07:27 +0200 |
commit | 2a15531bb9df283060e0eb0e7e93ecf33e494b4d (patch) | |
tree | c2bfb323789bf43123e70ec209cb18533914e4ad /src/wins.c | |
parent | a5f3e53ce3b1e99058bf75d6dfddfec3c9c95768 (diff) | |
download | calcurse-2a15531bb9df283060e0eb0e7e93ecf33e494b4d.zip |
Add support for caption rows in list boxes
This adds support for rows that cannot be selected. Such rows can be
used for section headings and the like.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/wins.c')
-rw-r--r-- | src/wins.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -250,11 +250,13 @@ static void wins_init_panels(void) wins_sbar_width(), _("Calendar")); listbox_init(&lb_apt, win[APP].y, win[APP].x, win[APP].h, win[APP].w, - _("Appointments"), ui_day_height, ui_day_draw); + _("Appointments"), ui_day_row_type, ui_day_height, + ui_day_draw); ui_day_load_items(); listbox_init(&lb_todo, win[TOD].y, win[TOD].x, win[TOD].h, win[TOD].w, - _("TODO"), ui_todo_height, ui_todo_draw); + _("TODO"), ui_todo_row_type, ui_todo_height, + ui_todo_draw); ui_todo_load_items(); } |