diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-10-20 18:30:38 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-10-20 18:30:38 +0800 |
commit | 794d8764e403e33dba97353098aaf5e7b8ee39bc (patch) | |
tree | 23c8105f01542255020045c5bf2a26702e8c4a6b | |
parent | 9f1e9885a72a81dca721f2ffe5e1a260ee1381c5 (diff) | |
download | gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.gz gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.bz2 gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.lz gsoc2013-evolution-794d8764e403e33dba97353098aaf5e7b8ee39bc.tar.xz 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
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/calendar-model.c | 16 |
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 |