aboutsummaryrefslogtreecommitdiffstats
path: root/src/notify.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-10-06 08:57:38 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-10-21 08:58:53 +0200
commitb0a6e1d4482499bbaa08238a8cb09b6f692556d6 (patch)
tree7cffb33ce09b5779f5a7806ef9a88ffe1b5a15a9 /src/notify.c
parent3e84074ae55bc93faad0b708aa0dd6fd0f09ade9 (diff)
downloadcalcurse-b0a6e1d4482499bbaa08238a8cb09b6f692556d6.tar.gz
calcurse-b0a6e1d4482499bbaa08238a8cb09b6f692556d6.zip
Pass item durations to recur_item_inday()
Having item's durations eventually allows for better parsing of recurrent appointments as we might be interested in how many days are covered by a multi-day appointment. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/notify.c')
-rw-r--r--src/notify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/notify.c b/src/notify.c
index 590a3e4..e1a7dab 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -513,9 +513,9 @@ notify_check_repeated (struct recur_apoint *i)
current_time = time (NULL);
pthread_mutex_lock (&notify_app.mutex);
- if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type,
- i->rpt->freq, i->rpt->until,
- get_today ())))
+ if ((real_app_time = recur_item_inday (i->start, i->dur, &i->exc,
+ i->rpt->type, i->rpt->freq,
+ i->rpt->until, get_today ())))
{
if (!notify_app.got_app)
{
@@ -558,7 +558,7 @@ notify_same_recur_item (struct recur_apoint *i)
int same = 0;
long item_start = 0;
- item_start = recur_item_inday (i->start, &i->exc, i->rpt->type,
+ item_start = recur_item_inday (i->start, i->dur, &i->exc, i->rpt->type,
i->rpt->freq, i->rpt->until, get_today ());
pthread_mutex_lock (&notify_app.mutex);
if (notify_app.got_app && item_start == notify_app.time)