summaryrefslogtreecommitdiff
path: root/src/wins.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-05-18 09:47:19 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-05-18 11:07:27 +0200
commit2a15531bb9df283060e0eb0e7e93ecf33e494b4d (patch)
treec2bfb323789bf43123e70ec209cb18533914e4ad /src/wins.c
parenta5f3e53ce3b1e99058bf75d6dfddfec3c9c95768 (diff)
downloadcalcurse-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wins.c b/src/wins.c
index 729e014..0c12d8e 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -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();
}