From 7a84b132d16194dce77ab5ab42b695bda551642e Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 28 Oct 2006 13:09:59 +0000 Subject: display_item_date() updated to add an asterisk in front of recurrent items --- src/apoint.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/apoint.c b/src/apoint.c index d2f4c9c..d0361e5 100755 --- a/src/apoint.c +++ b/src/apoint.c @@ -1,4 +1,4 @@ -/* $calcurse: apoint.c,v 1.5 2006/09/16 15:22:20 culot Exp $ */ +/* $calcurse: apoint.c,v 1.6 2006/10/28 13:09:59 culot Exp $ */ /* * Calcurse - text-based organizer @@ -198,12 +198,17 @@ void display_item_date(WINDOW *win, int incolor, apoint_llist_node_t *i, int type, long date, int y, int x) { char a_st[100], a_end[100]; + int recur = 0; apoint_sec2str(i, type, date, a_st, a_end); - + if (type == RECUR_EVNT || type == RECUR_APPT) + recur = 1; if (incolor == 0) custom_apply_attr(win, ATTR_HIGHEST); - mvwprintw(win, y, x, " - %s -> %s", a_st, a_end); + if (recur) + mvwprintw(win, y, x, " * %s -> %s", a_st, a_end); + else + mvwprintw(win, y, x, " - %s -> %s", a_st, a_end); if (incolor == 0) custom_remove_attr(awin, ATTR_HIGHEST); } -- cgit v1.2.3-54-g00ecf