From 10a6d6d570110e7721fb4ca9f77376c1c027a0c7 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 1 Jul 2007 17:54:33 +0000 Subject: apoint_switch_notify() prototype updated to take into account date_t type --- src/apoint.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/apoint.c') diff --git a/src/apoint.c b/src/apoint.c index 7889937..388126a 100755 --- a/src/apoint.c +++ b/src/apoint.c @@ -1,4 +1,4 @@ -/* $calcurse: apoint.c,v 1.10 2007/04/04 19:35:09 culot Exp $ */ +/* $calcurse: apoint.c,v 1.11 2007/07/01 17:54:33 culot Exp $ */ /* * Calcurse - text-based organizer @@ -39,6 +39,7 @@ #include "utils.h" #include "notify.h" #include "recur.h" +#include "calendar.h" apoint_llist_t *alist_p; @@ -333,7 +334,7 @@ apoint_llist_node_t *apoint_recur_s2apoint_s( * Switch notification state. */ void -apoint_switch_notify(int year, int month, int day, int item_num) +apoint_switch_notify(int item_num) { apoint_llist_node_t *apoint; struct day_item_s *p; @@ -344,7 +345,7 @@ apoint_switch_notify(int year, int month, int day, int item_num) if (p->type != APPT && p->type != RECUR_APPT) return; - date = date2sec(year, month, day, 0, 0); + date = calendar_get_slctd_day_sec(); if (p->type == RECUR_APPT) { recur_apoint_switch_notify(date, p->appt_pos); -- cgit v1.2.3-54-g00ecf