diff options
Diffstat (limited to 'src/ui-todo.c')
-rw-r--r-- | src/ui-todo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui-todo.c b/src/ui-todo.c index de19272..971c69d 100644 --- a/src/ui-todo.c +++ b/src/ui-todo.c @@ -327,3 +327,14 @@ void ui_todo_view_prev(void) ui_todo_view--; ui_todo_load_items(); } + +void ui_todo_set_view(int view) +{ + ui_todo_view = (view < 0 || view >= TODO_VIEWS) ? + TODO_SHOW_COMPLETED_VIEW : view; +} + +int ui_todo_get_view(void) +{ + return (int)ui_todo_view; +} |