diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/calendar-model.c | 16 |
2 files changed, 18 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c105c036cb..de1f34dde5 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2000-11-27 Jesse Pavel <jpavel@helixcode.com> + + *gui/calendar-model.c: added a preliminary change to have Assigned + To-Do items have a corresponding icon. + 2000-11-27 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.c (free_prepare): Ditto diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index f1d614f94f..2de745727e 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -663,9 +663,19 @@ calendar_model_value_at (ETableModel *etm, int col, int row) else'. */ if (cal_component_has_recurrences (comp)) return GINT_TO_POINTER (1); - else - return GINT_TO_POINTER (0); - + else { + icalcomponent *ical_comp; + + ical_comp = cal_component_get_icalcomponent (comp); + if (icalcomponent_get_first_property (ical_comp, + ICAL_ATTENDEE_PROPERTY) != NULL) + { + return GINT_TO_POINTER (2); /* Task-assigned */ + } + else { + return GINT_TO_POINTER (0); + } + } case CAL_COMPONENT_FIELD_COMPLETE: return GINT_TO_POINTER (get_is_complete (comp)); |