aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/calendar-model.c16
2 files changed, 6 insertions, 15 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index cf8609cd5f..10d3956745 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2000-10-20 Damon Chaplin <damon@helixcode.com>
+ * gui/calendar-model.c (calendar_model_value_at): use
+ cal_component_has_alarms().
+
+2000-10-20 Damon Chaplin <damon@helixcode.com>
+
* gui/e-calendar-table.c (E_CALENDAR_TABLE_SPEC): added
_click-to-add-message, though I'm not sure if i18n will work.
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