aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-11-28 06:27:10 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-11-28 06:27:10 +0800
commit2a50dfdd2898626fc5e2315742ab4022536cf7e3 (patch)
tree9f7b5a6e7b28fd652aebb21f83a400d9f91734d6 /calendar
parentdce674fa1a19593e8b9b3b2ddbe5524f9cc54714 (diff)
downloadgsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar.gz
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar.bz2
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar.lz
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar.xz
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.tar.zst
gsoc2013-evolution-2a50dfdd2898626fc5e2315742ab4022536cf7e3.zip
*gui/calendar-model.c: added a preliminary change to have Assigned
To-Do items have a corresponding icon. svn path=/trunk/; revision=6686
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/calendar-model.c16
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));