aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-10-20 18:30:38 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-10-20 18:30:38 +0800
commit794d8764e403e33dba97353098aaf5e7b8ee39bc (patch)
tree23c8105f01542255020045c5bf2a26702e8c4a6b /calendar/gui
parent9f1e9885a72a81dca721f2ffe5e1a260ee1381c5 (diff)
downloadgsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.gz
gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.zst
gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.zip
use cal_component_has_alarms().
2000-10-20 Damon Chaplin <damon@helixcode.com> * gui/calendar-model.c (calendar_model_value_at): use cal_component_has_alarms(). svn path=/trunk/; revision=6075
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-model.c16
1 files changed, 1 insertions, 15 deletions
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