From 2a62351d259096f60c0a4fca78963bd12233786e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 18 May 2014 10:19:30 +0200 Subject: Reintroduce heading and separator in appointments This re-introduces the heading (showing the POM and the current date) as well as the separating line between events and appointments. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 8072304..adcd506 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -554,12 +554,13 @@ struct nbar { }; /* Available types of items. */ -enum item_type { - RECUR_EVNT = 1, +enum day_item_type { + DAY_HEADING = 1, + RECUR_EVNT, EVNT, + DAY_SEPARATOR, RECUR_APPT, - APPT, - MAX_TYPES = APPT + APPT }; /* Return codes for the getstring() function. */ @@ -700,7 +701,7 @@ long day_item_get_duration(struct day_item *); int day_item_get_state(struct day_item *); void day_item_add_exc(struct day_item *, long); void day_item_fork(struct day_item *, struct day_item *); -void day_store_items(long, regex_t *); +void day_store_items(long, regex_t *, int); void day_process_storage(struct date *, unsigned); void day_display_item_date(struct day_item *, WINDOW *, int, long, int, int); void day_display_item(struct day_item *, WINDOW *, int, int, int, int); -- cgit v1.2.3-54-g00ecf