From 2a15531bb9df283060e0eb0e7e93ecf33e494b4d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 18 May 2014 09:47:19 +0200 Subject: 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 --- src/wins.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/wins.c') 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(); } -- cgit v1.2.3-54-g00ecf