From 794d8764e403e33dba97353098aaf5e7b8ee39bc Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Fri, 20 Oct 2000 10:30:38 +0000 Subject: use cal_component_has_alarms(). 2000-10-20 Damon Chaplin * gui/calendar-model.c (calendar_model_value_at): use cal_component_has_alarms(). svn path=/trunk/; revision=6075 --- calendar/gui/calendar-model.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index fa05ba407a..064e855ba1 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -540,20 +540,6 @@ get_url (CalComponent *comp) return ""; } -/* Returns whether the component has any alarms defined for it */ -static gboolean -get_has_alarms (CalComponent *comp) -{ - CalComponentAlarm *alarm; - gboolean retval; - - alarm = cal_component_get_first_alarm (comp); - retval = (alarm != NULL); - - cal_component_alarm_free (alarm); - return retval; -} - /* Returns whether the completion date has been set on a component */ static gboolean get_is_complete (CalComponent *comp) @@ -670,7 +656,7 @@ calendar_model_value_at (ETableModel *etm, int col, int row) return get_url (comp); case CAL_COMPONENT_FIELD_HAS_ALARMS: - return GINT_TO_POINTER (get_has_alarms (comp)); + return GINT_TO_POINTER (cal_component_has_alarms (comp)); case CAL_COMPONENT_FIELD_ICON: /* FIXME: Also support 'Assigned to me' & 'Assigned to someone -- cgit