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>
This commit is contained in:
Lukas Fleischer
2014-05-18 09:47:19 +02:00
parent a5f3e53ce3
commit 2a15531bb9
7 changed files with 105 additions and 16 deletions

View File

@@ -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();
}