diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-07-26 06:01:22 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-07-26 06:01:22 +0800 |
commit | 38168a2e40c23292e6e9ac8472f06a754e7981e4 (patch) | |
tree | d106fb8f52c85fa68ac03b3a760d0836e5b673b7 /calendar/pcs | |
parent | 6602e014932c47e7ddccebb591bc399f54dcdc4c (diff) | |
download | gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar.gz gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar.bz2 gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar.lz gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar.xz gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.tar.zst gsoc2013-evolution-38168a2e40c23292e6e9ac8472f06a754e7981e4.zip |
New function. (scan_property): Handle the RDATE property. (scan_period):
2000-07-25 Federico Mena Quintero <federico@helixcode.com>
* cal-util/cal-component.c (cal_component_free_period_list): New function.
(scan_property): Handle the RDATE property.
(scan_period): Likewise.
(free_icalcomponent): Likewise.
(get_period_list): Likewise.
(set_period_list): Likewise.
(cal_component_get_rdate_list): Likewise.
(cal_component_set_rdate_list): Likewise.
(scan_text): Simplify a bit since we only handle the ALTREP
parameter; there is no need to iterate over all parameters.
(scan_datetime): Simplify; just handle the TZID parameter.
(scan_summary): Simplify; just handle the ALTREP parameter.
(cal_component_get_as_string): New function.
* idl/evolution-calendar.idl (CalObjType): Removed the TYPE_OTHER;
now we only expose the types of objects we know about.
* cal-util/cal-util.h (CalObjType): Likewise.
* cal-client/cal-client.c (cal_client_get_n_objects): Likewise.
(cal_client_get_uids): Likewise.
* conduits/calendar/calendar-conduit.c (get_calendar_objects): Likewise.
(check_for_slow_setting): Likewise.
* pcs/cal-backend-imc.c (count_objects): Likewise.
(build_uids_list): Likewise.
* pcs/cal.c (Cal_get_uids): Likewise.
(Cal_get_n_objects): Likewise.
svn path=/trunk/; revision=4336
Diffstat (limited to 'calendar/pcs')
-rw-r--r-- | calendar/pcs/Makefile.am | 6 | ||||
-rw-r--r-- | calendar/pcs/cal-backend-imc.c | 7 | ||||
-rw-r--r-- | calendar/pcs/cal.c | 2 |
3 files changed, 2 insertions, 13 deletions
diff --git a/calendar/pcs/Makefile.am b/calendar/pcs/Makefile.am index 0c633dc285..8ff2f0ce84 100644 --- a/calendar/pcs/Makefile.am +++ b/calendar/pcs/Makefile.am @@ -37,10 +37,8 @@ libpcs_a_SOURCES = \ job.c \ job.h - - - - +# cal-backend-file.c \ +# cal-backend-file.h \ BUILT_SOURCES = $(CORBA_GENERATED) CLEANFILES += $(BUILT_SOURCES) diff --git a/calendar/pcs/cal-backend-imc.c b/calendar/pcs/cal-backend-imc.c index 20c0292793..29015a70cc 100644 --- a/calendar/pcs/cal-backend-imc.c +++ b/calendar/pcs/cal-backend-imc.c @@ -869,8 +869,6 @@ count_objects (gpointer key, gpointer value, gpointer data) store = (c->type & CALOBJ_TYPE_TODO) != 0; else if (ico->type == ICAL_JOURNAL) store = (c->type & CALOBJ_TYPE_JOURNAL) != 0; - else - store = (c->type & CALOBJ_TYPE_OTHER) != 0; if (store) c->n++; @@ -950,8 +948,6 @@ build_uids_list (gpointer key, gpointer value, gpointer data) store = (c->type & CALOBJ_TYPE_TODO) ? TRUE : FALSE; else if (ico->type == ICAL_JOURNAL) store = (c->type & CALOBJ_TYPE_JOURNAL) ? TRUE : FALSE; - else - store = (c->type & CALOBJ_TYPE_OTHER) ? TRUE : FALSE; if (store) c->uid_list = g_list_prepend (c->uid_list, g_strdup (ico->uid)); @@ -970,9 +966,6 @@ cal_backend_imc_get_uids (CalBackend *backend, CalObjType type) g_return_val_if_fail (priv->loaded, NULL); - /* We go through the hash table instead of the lists of particular - * object types so that we can pick up CALOBJ_TYPE_OTHER objects. - */ c.type = type; c.uid_list = NULL; g_hash_table_foreach (priv->object_hash, build_uids_list, &c); diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c index 35677c6cac..cd94bb3a80 100644 --- a/calendar/pcs/cal.c +++ b/calendar/pcs/cal.c @@ -187,7 +187,6 @@ Cal_get_n_objects (PortableServer_Servant servant, t = (((type & Evolution_Calendar_TYPE_EVENT) ? CALOBJ_TYPE_EVENT : 0) | ((type & Evolution_Calendar_TYPE_TODO) ? CALOBJ_TYPE_TODO : 0) | ((type & Evolution_Calendar_TYPE_JOURNAL) ? CALOBJ_TYPE_JOURNAL : 0) - | ((type & Evolution_Calendar_TYPE_OTHER) ? CALOBJ_TYPE_OTHER : 0) /* | ((type & Evolution_Calendar_TYPE_ANY) ? CALOBJ_TYPE_ANY : 0) */ @@ -247,7 +246,6 @@ Cal_get_uids (PortableServer_Servant servant, t = (((type & Evolution_Calendar_TYPE_EVENT) ? CALOBJ_TYPE_EVENT : 0) | ((type & Evolution_Calendar_TYPE_TODO) ? CALOBJ_TYPE_TODO : 0) | ((type & Evolution_Calendar_TYPE_JOURNAL) ? CALOBJ_TYPE_JOURNAL : 0) - | ((type & Evolution_Calendar_TYPE_OTHER) ? CALOBJ_TYPE_OTHER : 0) /* | ((type & Evolution_Calendar_TYPE_ANY) ? CALOBJ_TYPE_ANY : 0) */ |