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/ui-todo.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/ui-todo.c')
-rw-r--r-- | src/ui-todo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui-todo.c b/src/ui-todo.c index c7b29f4..8daf283 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -177,6 +177,11 @@ void ui_todo_draw(int n, WINDOW *win, int y, int hilt, void *cb_data) *((llist_item_t **)cb_data) = i->next; } +enum listbox_row_type ui_todo_row_type(int i, void *cb_data) +{ + return LISTBOX_ROW_TEXT; +} + int ui_todo_height(int n, void *cb_data) { return 1; |