From 0504875219bdc4c017938bdccf564d9a452afcc6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 25 Jun 2012 22:30:20 +0200 Subject: Simplify apoint_switch_notify() Pull out code from apoint_switch_notify() -- especially the fallback routine that calls recur_apoint_switch_notify() if the currently selected item is a recurrent item -- and move it to a wrapper function day_item_switch_notify(). Signed-off-by: Lukas Fleischer --- src/calcurse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index be2229b..c3233bb 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -612,7 +612,7 @@ void apoint_delete_bynum(long, unsigned, enum eraseflg); void apoint_scroll_pad_down(int, int); void apoint_scroll_pad_up(int); struct notify_app *apoint_check_next(struct notify_app *, long); -void apoint_switch_notify(void); +void apoint_switch_notify(struct apoint *); void apoint_update_panel(int); void apoint_paste_item(void); @@ -682,6 +682,7 @@ int day_item_nb(long, int, int); void day_edit_note(const char *); void day_view_note(const char *); void day_pipe_item(void); +void day_item_switch_notify(void); /* dmon.c */ void dmon_start(int); -- cgit v1.2.3-54-g00ecf