diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-09 00:31:57 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-09 00:33:01 +0200 |
commit | cac973fee3d828fac641f6de771054a32cfbbfe3 (patch) | |
tree | 92b54735e60543d6541a7f6720d866cfc9226f5c /src/ui-todo.c | |
parent | 00ceca6000f4f9f160e3bb43e1771657b5cee4bf (diff) | |
download | calcurse-cac973fee3d828fac641f6de771054a32cfbbfe3.zip |
Load todo items on startup
Reload (and show) items into the list box after reading data files.
Reported-by: BARE Willy sprl <barewillysprl@euphonynet.be>
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 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); |