From aaf4589c1cd46d11cb03d4926db46537603af0a6 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Thu, 6 May 2004 04:06:19 +0000 Subject: [PATCH] assign capabilities to ecal->capabilities so that it need not be computed * libecal/e-cal.c: (load_static_capabilities): assign capabilities to ecal->capabilities so that it need not be computed repeatedly. * backends/groupwise/e-cal-backend-groupwise.c: (populate_cache) : added message to view element to recieve message bodies as plain text (default). (connect_to_server) : the Tasks folder is also Calendar and not Checklist in GW server. (e_cal_backend_groupwise_get_static_capabilities) : Added CAL_STATIC_CAPABILITY_SAVE_SCHEDULES. --- calendar/ChangeLog | 12 ++++++++++++ calendar/backends/groupwise/e-cal-backend-groupwise.c | 13 +++++++++---- calendar/libecal/e-cal.c | 2 +- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 96b037c..010b3e0 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,15 @@ +2004-05-06 Harish Krishnaswamy + + * libecal/e-cal.c: (load_static_capabilities): assign capabilities + to ecal->capabilities so that it need not be computed repeatedly. + * backends/groupwise/e-cal-backend-groupwise.c: + (populate_cache) : added message to view element to recieve + message bodies as plain text (default). + (connect_to_server) : the Tasks folder is also Calendar and + not Checklist in GW server. + (e_cal_backend_groupwise_get_static_capabilities) : + Added CAL_STATIC_CAPABILITY_SAVE_SCHEDULES. + 2004-05-04 Harish Krishnaswamy * backends/groupwise/e-cal-backend-groupwise-utils.c: diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c index 898b468..1cde922 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c @@ -79,7 +79,7 @@ populate_cache (ECalBackendGroupwise *cbgw) priv = cbgw->priv; /* get all the objects from the server */ - status = e_gw_connection_get_items (priv->cnc, priv->container_id, "recipients", NULL, &list); + status = e_gw_connection_get_items (priv->cnc, priv->container_id, "recipients message", NULL, &list); if (status != E_GW_CONNECTION_STATUS_OK) { g_list_free (list); e_cal_backend_groupwise_notify_error_code (cbgw, status); @@ -223,8 +223,8 @@ connect_to_server (ECalBackendGroupwise *cbgw) priv->container_id = e_gw_connection_get_container_id (priv->cnc, "Calendar"); e_source_set_name (e_cal_backend_get_source (E_CAL_BACKEND (cbgw)), _("Calendar")); } else if (kind == ICAL_VTODO_COMPONENT) { - priv->container_id = e_gw_connection_get_container_id (priv->cnc, "Checklist"); - e_source_set_name (e_cal_backend_get_source (E_CAL_BACKEND (cbgw)), _("Checklist")); + priv->container_id = e_gw_connection_get_container_id (priv->cnc, "Calendar"); + e_source_set_name (e_cal_backend_get_source (E_CAL_BACKEND (cbgw)), _("Calendar")); } else priv->container_id = NULL; @@ -386,7 +386,8 @@ e_cal_backend_groupwise_get_static_capabilities (ECalBackendSync *backend, EData CAL_STATIC_CAPABILITY_ONE_ALARM_ONLY "," \ CAL_STATIC_CAPABILITY_REMOVE_ALARMS "," \ CAL_STATIC_CAPABILITY_NO_THISANDPRIOR "," \ - CAL_STATIC_CAPABILITY_NO_THISANDFUTURE); + CAL_STATIC_CAPABILITY_NO_THISANDFUTURE "," \ + CAL_STATIC_CAPABILITY_SAVE_SCHEDULES); return GNOME_Evolution_Calendar_Success; } @@ -411,6 +412,10 @@ e_cal_backend_groupwise_open (ECalBackendSync *backend, EDataCal *cal, gboolean /* FIXME: if the cache already exists - read it and get deltas. */ if (priv->cache) { g_mutex_unlock (priv->mutex); + g_object_ref (priv->cnc); + g_object_ref (priv->cache); + g_timeout_add (CACHE_REFRESH_INTERVAL, (GSourceFunc) get_deltas, (gpointer) cbgw); + priv->mode = CAL_MODE_REMOTE; return GNOME_Evolution_Calendar_Success; } diff --git a/calendar/libecal/e-cal.c b/calendar/libecal/e-cal.c index e32731c..2029057 100644 --- a/calendar/libecal/e-cal.c +++ b/calendar/libecal/e-cal.c @@ -2200,7 +2200,7 @@ load_static_capabilities (ECal *ecal, GError **error) g_cond_wait (our_op->cond, our_op->mutex); status = our_op->status; - cap = our_op->string; + priv->capabilities = our_op->string; e_calendar_remove_op (ecal, our_op); g_mutex_unlock (our_op->mutex); -- 2.7.4