[evolution-patches] Do not send getItems Request everytime [calendar]
- From: chenthill <pchenthill novell com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] Do not send getItems Request everytime [calendar]
- Date: Mon, 16 Aug 2004 19:43:30 +0530
Hi,
We need not get the items from the server everytime calendar is
opened, since we had already populated the cace. Attached a patch for
this. Resending the patch since due to a small modification.
thanks, chenthill.
? patch
? patch_60265.diff
? patch_62866.diff
? populate_cac.diff
? ~?
? libedata-cal/.e-data-cal-view.c.swp
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.311
diff -u -r1.311 ChangeLog
--- ChangeLog 14 Aug 2004 05:20:27 -0000 1.311
+++ ChangeLog 16 Aug 2004 13:36:17 -0000
@@ -1,3 +1,9 @@
+2004-08-16 Chenthill Palanisamy <pchenthill novell com>
+
+ * backends/groupwise/e-cal-backend-groupwise.c
+ (connect_to_server): Do not get the items from server every time
+ the calendar is loaded, since the cache is already populated.
+
2004-08-13 Hans Petter Jansson <hpj ximian com>
Fixes bug #62655.
Index: backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.82
diff -u -r1.82 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c 10 Aug 2004 12:27:43 -0000 1.82
+++ backends/groupwise/e-cal-backend-groupwise.c 16 Aug 2004 13:36:18 -0000
@@ -273,6 +273,12 @@
/* As of now we are assuming that logged in user has write rights to calender */
/* we need to read actual rights from server when we implement proxy user access */
cbgw->priv->read_only = FALSE;
+
+ if (priv->cnc && priv->cache) {
+ priv->mode = CAL_MODE_REMOTE;
+ return GNOME_Evolution_Calendar_Success;
+ }
+
if (E_IS_GW_CONNECTION (priv->cnc)) {
icalcomponent_kind kind;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]