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/ui-day.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui-day.c') diff --git a/src/ui-day.c b/src/ui-day.c index d1e5843..e52b6d2 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -843,6 +843,11 @@ void ui_day_draw(int n, WINDOW *win, int y, int hilt, void *cb_data) } +enum listbox_row_type ui_day_row_type(int i, void *cb_data) +{ + return LISTBOX_ROW_TEXT; +} + int ui_day_height(int n, void *cb_data) { struct day_item *item = day_get_item(n); -- cgit v1.2.3