[evolution-patches] Do not send getItems Request everytime [calendar]



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.

thanks, chenthill.
? patch
? patch_60265.diff
? patch_62866.diff
? populate_cac.diff
? ~?
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 09:44:41 -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 09:44:41 -0000
@@ -274,6 +274,9 @@
 		/* we need to read actual rights from server when we implement proxy user access */
 		cbgw->priv->read_only = FALSE;
 	
+		if (priv->cache && priv->cnc)
+			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]