diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-02-14 10:26:45 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2013-02-14 10:28:31 +0100 |
commit | 267bf0fc1c3ef59b232ea60e7ccdede664a667e8 (patch) | |
tree | e195a200a6895c4f623429e79230f2f84d1d4ca8 /src/calcurse.c | |
parent | 720189d03fb9166a28e14cbf19d3b7ec46fa197a (diff) | |
download | calcurse-267bf0fc1c3ef59b232ea60e7ccdede664a667e8.tar.gz calcurse-267bf0fc1c3ef59b232ea60e7ccdede664a667e8.zip |
Split out UI functions for todo items
* Move todo-related UI functions from "interaction.c" to a new
compilation unit "ui-todo.c".
* Rename all todo-related UI functions to todo_ui_*().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index a8dace1..34b93db 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -133,7 +133,7 @@ static inline void key_generic_add_appt(void) static inline void key_generic_add_todo(void) { - interact_todo_add(); + ui_todo_add(); if (todo_hilt() == 0 && todo_nb() == 1) todo_hilt_increase(1); wins_update(FLAG_TOD | FLAG_STA); @@ -148,7 +148,7 @@ static inline void key_add_item(void) wins_update(FLAG_CAL | FLAG_APP | FLAG_STA); break; case TOD: - interact_todo_add(); + ui_todo_add(); if (todo_hilt() == 0 && todo_nb() == 1) todo_hilt_increase(1); wins_update(FLAG_TOD | FLAG_STA); @@ -165,7 +165,7 @@ static inline void key_edit_item(void) inday = do_storage(0); wins_update(FLAG_CAL | FLAG_APP | FLAG_STA); } else if (wins_slctd() == TOD && todo_hilt() != 0) { - interact_todo_edit(); + ui_todo_edit(); wins_update(FLAG_TOD | FLAG_STA); } } @@ -177,7 +177,7 @@ static inline void key_del_item(void) inday = do_storage(0); wins_update(FLAG_CAL | FLAG_APP | FLAG_STA); } else if (wins_slctd() == TOD && todo_hilt() != 0) { - interact_todo_delete(); + ui_todo_delete(); wins_update(FLAG_TOD | FLAG_STA); } } @@ -225,7 +225,7 @@ static inline void key_pipe_item(void) if (wins_slctd() == APP && apoint_hilt() != 0) interact_day_item_pipe(); else if (wins_slctd() == TOD && todo_hilt() != 0) - interact_todo_pipe(); + ui_todo_pipe(); wins_update(FLAG_ALL); } |