[evolution-patches] patch for bug #62857 [calendar]



Hi,
    Have attached the patch which makes all the components in
recurrences availble 
in the view as soon as it is created.

thanks, chenthill
? clear_cache.diff
? patch
? patch_60265.diff
? patch_62866.diff
? populate_cac.diff
? recurrence.diff
? ~?
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.316
diff -u -r1.316 ChangeLog
--- ChangeLog	17 Aug 2004 14:32:39 -0000	1.316
+++ ChangeLog	20 Aug 2004 11:51:35 -0000
@@ -1,3 +1,11 @@
+2004-08-16  Chenthill Palanisamy <pchenthill novell com>
+	
+	Fixes bug #62857
+	* backends/groupwise/e-cal-backend-groupwise.c
+	(e_cal_backend_groupwise_create_object): return	the cal object created
+	for the first component and notify the client for the cal objects of other 
+	components created in recurrences.
+
 2004-08-17  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #61782
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.84
diff -u -r1.84 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c	17 Aug 2004 09:57:23 -0000	1.84
+++ backends/groupwise/e-cal-backend-groupwise.c	20 Aug 2004 11:51:35 -0000
@@ -1063,6 +1063,7 @@
 			g_free (server_uid);
 			/* if successful, update the cache */
 			e_cal_backend_cache_put_component (priv->cache, comp);
+			*calobj = e_cal_component_get_as_string (comp);
 		} else {
 			
 			GList *list = NULL, *tmp;
@@ -1084,6 +1085,18 @@
 				e_cal_component_commit_sequence (e_cal_comp);
 				sanitize_component (backend, e_cal_comp, g_ptr_array_index (uid_array, i));
 				e_cal_backend_cache_put_component (priv->cache, e_cal_comp);
+				
+				if (i == 0) {
+					*calobj = e_cal_component_get_as_string (e_cal_comp);	
+				}
+
+				if (i != 0) {
+					char *temp;
+					temp = e_cal_component_get_as_string (e_cal_comp);
+					e_cal_backend_notify_object_created (E_CAL_BACKEND (cbgw), g_strdup(temp));
+					g_free (temp);
+				}
+
 				g_object_unref (e_cal_comp);
 			}
 			g_ptr_array_free (uid_array, TRUE);
@@ -1092,8 +1105,6 @@
 	default :
 		break;
 	}
-
-	*calobj = e_cal_component_get_as_string (comp);
 
 	g_object_unref (comp);
 


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