summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 11:03:10 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 11:08:03 +0100
commit971df8d215a0e10c87f67f3505345e15efcffb8e (patch)
tree23bcd368447b6f9580223acd563311f1393b4f77 /src/io.c
parent601709b173d45394ded5027712959efce2fe862b (diff)
downloadcalcurse-971df8d215a0e10c87f67f3505345e15efcffb8e.zip
todo.c: Split out UI-related functions
* Move UI-related functions to "ui-todo.c". * Rename UI-related functions to ui_todo_*(). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 8923ba5..144ef67 100644
--- a/src/io.c
+++ b/src/io.c
@@ -640,7 +640,7 @@ void io_load_todo(void)
++nb_tod;
}
file_close(data_file, __FILE_POS__);
- todo_set_nb(nb_tod);
+ ui_todo_set_nb(nb_tod);
}
static void
@@ -1022,7 +1022,7 @@ void io_import_data(enum import_type type, const char *stream_name)
snprintf(stats_str[3], BUFSIZ, _("%d skipped"), stats.skipped);
/* Update the number of todo items. */
- todo_set_nb(todo_nb() + stats.todos);
+ ui_todo_set_nb(ui_todo_nb() + stats.todos);
if (ui_mode == UI_CURSES && conf.system_dialogs) {
char read[BUFSIZ], stat[BUFSIZ];