[evolution-patches] [e-d-s: calendar] fix for bug #303548



attached patch is the fix for bug #303548
please review.

Regards,
Dinesh

Index: e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.162
diff -u -p -r1.162 e-cal-backend-groupwise.c
--- e-cal-backend-groupwise.c	17 Aug 2005 03:47:41 -0000	1.162
+++ e-cal-backend-groupwise.c	17 Aug 2005 11:11:45 -0000
@@ -512,7 +512,7 @@ get_deltas (gpointer handle)
 		}
 
 	}	
-
+#if 0
 	if (needs_to_get) {
 		e_gw_connection_get_items_from_ids (priv->cnc,
 				priv->container_id, 
@@ -543,6 +543,35 @@ get_deltas (gpointer handle)
 			g_object_unref (item);
 		}
 	}
+#endif
+
+	if ( needs_to_get) {
+		int index;
+		for (index = 0; index < uid_array->len; index++) {
+			ECalComponent *comp = NULL;
+			EGwItem *item = NULL;
+			char *temp = NULL;
+			char *item_id = NULL;
+
+			item_id = g_ptr_array_index (uid_array, index);
+			status = e_gw_connection_get_item (priv->cnc, priv->container_id, item_id, 
+				"attachments recipients message recipientStatus default peek", &item);
+			comp = e_gw_item_to_cal_component (item, cbgw);
+			if (comp) {
+				e_cal_component_commit_sequence (comp);
+				sanitize_component (E_CAL_BACKEND_SYNC (cbgw), comp, (char *) e_gw_item_get_id (item));
+				e_cal_backend_cache_put_component (priv->cache, comp);
+
+				if (kind == icalcomponent_isa (e_cal_component_get_icalcomponent (comp))) {
+					temp = e_cal_component_get_as_string (comp);
+					e_cal_backend_notify_object_created (E_CAL_BACKEND (cbgw), temp);
+					g_free (temp);
+				}
+				g_object_unref (comp);
+			}
+			g_object_unref (item);
+		}
+	}
 
 	e_file_cache_thaw_changes (E_FILE_CACHE (cache));
 
Index: ../../ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.487
diff -u -p -r1.487 ChangeLog
--- ../../ChangeLog	25 Jul 2005 14:12:58 -0000	1.487
+++ ../../ChangeLog	17 Aug 2005 11:11:46 -0000
@@ -1,3 +1,10 @@
+2005-08-25  Dinesh Layek  <LDinesh novell com>
+
+	Fixes #303548
+	* backends/groupwise/e-cal-backend-groupwise.c: 
+	(get_deltas): replaced e_gw_connection_get_items_from_ids call
+	with e_gw_connection_get_item. 
+
 2005-07-25  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #271837


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]