summaryrefslogtreecommitdiff
path: root/calendar/backends/weather
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2006-07-24 13:09:34 +0000
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-07-24 13:09:34 +0000
commite6b895c9c11bd5bbf47aaa32f292473a2d96a1f6 (patch)
tree086e8cf548f2d6a2d726f59ee98c0a952baa5260 /calendar/backends/weather
parentab94ebc968d24fd53a6160b28f3f77491134441b (diff)
downloadevolution-data-server-e6b895c9c11bd5bbf47aaa32f292473a2d96a1f6.tar.gz
Patch to split the cache into multiple files based on the type of objects
2006-07-24 Harish Krishnaswamy <kharish@novell.com> Patch to split the cache into multiple files based on the type of objects it stores. This substantially reduces the primary memory requirements of Evolution and EDS for providers like GW, Exchange that manipulate event/tasks/journals together. * backends/caldav/e-cal-backend-caldav.c: (initialize_backend): * backends/groupwise/e-cal-backend-groupwise.c: (connect_to_server), (e_cal_backend_groupwise_open): * backends/http/e-cal-backend-http.c: (e_cal_backend_http_open): * backends/weather/e-cal-backend-weather.c: (e_cal_backend_weather_open): Update e_cal_backend_cache_new calls with an additional source type argument. * libecal/e-cal.[ch]: (e_cal_source_type_enum_get_type): Implement the function. * libedata-cal/e-cal-backend-cache.c: (get_filename_from_uri), (e_cal_backend_cache_set_property), (e_cal_backend_cache_get_property), (e_cal_backend_cache_constructor), (e_cal_backend_cache_class_init), (e_cal_backend_cache_new): Compute the cache destination using the source type. * libedata-cal/e-cal-backend-cache.h: Include header e-cal.h.
Diffstat (limited to 'calendar/backends/weather')
-rw-r--r--calendar/backends/weather/e-cal-backend-weather.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c
index f65dde992..8a8a23020 100644
--- a/calendar/backends/weather/e-cal-backend-weather.c
+++ b/calendar/backends/weather/e-cal-backend-weather.c
@@ -444,7 +444,7 @@ e_cal_backend_weather_open (ECalBackendSync *backend, EDataCal *cal, gboolean on
priv->city = g_strdup (strrchr (uri, '/') + 1);
if (!priv->cache) {
- priv->cache = e_cal_backend_cache_new (uri);
+ priv->cache = e_cal_backend_cache_new (uri, E_CAL_SOURCE_TYPE_EVENT);
if (!priv->cache) {
e_cal_backend_notify_error (E_CAL_BACKEND (cbw), _("Could not create cache file"));