evolution-data-server r9457 - in trunk/calendar: . backends/http
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9457 - in trunk/calendar: . backends/http
- Date: Mon, 1 Sep 2008 03:31:17 +0000 (UTC)
Author: msuman
Date: Mon Sep 1 03:31:17 2008
New Revision: 9457
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9457&view=rev
Log:
Milan Crha <mcrha redhat com> ** Fix for bug #549675 (Create cache with correct source_type value).
Modified:
trunk/calendar/ChangeLog
trunk/calendar/backends/http/e-cal-backend-http.c
Modified: trunk/calendar/backends/http/e-cal-backend-http.c
==============================================================================
--- trunk/calendar/backends/http/e-cal-backend-http.c (original)
+++ trunk/calendar/backends/http/e-cal-backend-http.c Mon Sep 1 03:31:17 2008
@@ -563,7 +563,22 @@
}
if (!priv->cache) {
- priv->cache = e_cal_backend_cache_new (e_cal_backend_get_uri (E_CAL_BACKEND (backend)), e_cal_backend_get_kind (E_CAL_BACKEND (backend)));
+ ECalSourceType source_type;
+
+ switch (e_cal_backend_get_kind (E_CAL_BACKEND (backend))) {
+ default:
+ case ICAL_VEVENT_COMPONENT:
+ source_type = E_CAL_SOURCE_TYPE_EVENT;
+ break;
+ case ICAL_VTODO_COMPONENT:
+ source_type = E_CAL_SOURCE_TYPE_TODO;
+ break;
+ case ICAL_VJOURNAL_COMPONENT:
+ source_type = E_CAL_SOURCE_TYPE_JOURNAL;
+ break;
+ }
+
+ priv->cache = e_cal_backend_cache_new (e_cal_backend_get_uri (E_CAL_BACKEND (backend)), source_type);
if (!priv->cache) {
e_cal_backend_notify_error (E_CAL_BACKEND(cbhttp), _("Could not create cache file"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]