diff options
author | Milan Crha <mcrha@redhat.com> | 2009-06-30 20:54:43 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-06-30 20:56:56 +0800 |
commit | 2d0ca7939abde5a7cfe1dcbb974e52939637e5a9 (patch) | |
tree | 423eb142537e159705feefed4afaed7691ac3672 /calendar/gui | |
parent | 619c1cf37efc97be4bad9b028b3e8fbb080aefd4 (diff) | |
download | gsoc2013-evolution-2d0ca7939abde5a7cfe1dcbb974e52939637e5a9.tar.gz gsoc2013-evolution-2d0ca7939abde5a7cfe1dcbb974e52939637e5a9.tar.zst gsoc2013-evolution-2d0ca7939abde5a7cfe1dcbb974e52939637e5a9.zip |
Bug #245723 - Show days with transparent events in italic
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/tag-calendar.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/tag-calendar.c b/calendar/gui/tag-calendar.c index 272d822a2c..2eddfbfec6 100644 --- a/calendar/gui/tag-calendar.c +++ b/calendar/gui/tag-calendar.c @@ -98,13 +98,18 @@ tag_calendar_cb (ECalComponent *comp, struct calendar_tag_closure *c = data; struct icaltimetype start_tt, end_tt; ECalComponentTransparency transparency; + guint8 style = 0; /* If we are skipping TRANSPARENT events, return if the event is transparent. */ - if (c->skip_transparent_events) { - e_cal_component_get_transparency (comp, &transparency); - if (transparency == E_CAL_COMPONENT_TRANSP_TRANSPARENT) + e_cal_component_get_transparency (comp, &transparency); + if (transparency == E_CAL_COMPONENT_TRANSP_TRANSPARENT) { + if (c->skip_transparent_events) return TRUE; + + style = E_CALENDAR_ITEM_MARK_ITALIC; + } else { + style = E_CALENDAR_ITEM_MARK_BOLD; } start_tt = icaltime_from_timet_with_zone (istart, FALSE, c->zone); @@ -114,7 +119,8 @@ tag_calendar_cb (ECalComponent *comp, start_tt.day, end_tt.year, end_tt.month - 1, end_tt.day, - E_CALENDAR_ITEM_MARK_BOLD); + style, + TRUE); return TRUE; } |