summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-10-28 13:09:59 +0000
committerFrederic Culot <calcurse@culot.org>2006-10-28 13:09:59 +0000
commit7a84b132d16194dce77ab5ab42b695bda551642e (patch)
treecc2589a8f32b6e25b9db3f283324c974085e07fb
parent0cfe1182f6501b088f52b8a6414b6abc2f15dedc (diff)
downloadcalcurse-7a84b132d16194dce77ab5ab42b695bda551642e.tar.gz
calcurse-7a84b132d16194dce77ab5ab42b695bda551642e.zip
display_item_date() updated to add an asterisk in front of recurrent items
-rwxr-xr-xsrc/apoint.c11
1 files 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);
}