diff options
author | Frederic Culot <calcurse@culot.org> | 2006-10-28 13:09:59 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-10-28 13:09:59 +0000 |
commit | 7a84b132d16194dce77ab5ab42b695bda551642e (patch) | |
tree | cc2589a8f32b6e25b9db3f283324c974085e07fb /src | |
parent | 0cfe1182f6501b088f52b8a6414b6abc2f15dedc (diff) | |
download | calcurse-7a84b132d16194dce77ab5ab42b695bda551642e.tar.gz calcurse-7a84b132d16194dce77ab5ab42b695bda551642e.zip |
display_item_date() updated to add an asterisk in front of recurrent items
Diffstat (limited to 'src')
-rwxr-xr-x | src/apoint.c | 11 |
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); } |