From cac973fee3d828fac641f6de771054a32cfbbfe3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 9 Jul 2014 00:31:57 +0200 Subject: Load todo items on startup Reload (and show) items into the list box after reading data files. Reported-by: BARE Willy sprl Signed-off-by: Lukas Fleischer --- src/ui-todo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui-todo.c') diff --git a/src/ui-todo.c b/src/ui-todo.c index 8daf283..49cf371 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -199,6 +199,11 @@ void ui_todo_load_items(void) listbox_load_items(&lb_todo, n); } +void ui_todo_sel_reset(void) +{ + listbox_sel_move(&lb_todo, 0); +} + void ui_todo_sel_move(int delta) { listbox_sel_move(&lb_todo, delta); -- cgit v1.2.3-54-g00ecf