[evolution-patches] [PATCH]Bug # 58014: cannot add multiple participants for the same category in tasks



This is a patch for bug #58014,which allows to add multiple participants
for the same category while assigning tasks.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2220
diff -u -r1.2220 ChangeLog
--- ChangeLog	29 Mar 2004 06:16:45 -0000	1.2220
+++ ChangeLog	4 May 2004 08:16:10 -0000
@@ -1,3 +1,9 @@
+2004-04-04  Umeshtej   <umeshtej gawab com>
+
+	Fixes bug #58014
+	* gui/e-meeting-list-view.c (process_section):
+	Count the number of elements in the array of type EABDestination* 
+	and run	the For loop for that count.
+
 2004-03-29  Kidd Wang  <kidd wang sun com>
 
 	* gui/e-calendar-view.c: (e_calendar_view_class_init): remove the
Index: gui/e-meeting-list-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-list-view.c,v
retrieving revision 1.8
diff -u -r1.8 e-meeting-list-view.c
--- a/gui/e-meeting-list-view.c	23 Mar 2004 21:51:41 -0000	1.8
+++ b/gui/e-meeting-list-view.c	4 May 2004 08:17:31 -0000
@@ -331,10 +331,13 @@
 process_section (EMeetingListView *view, EABDestination **cards, icalparameter_role role)
 {
 	EMeetingListViewPrivate *priv;
-	int i;
+	int i,count=0;
	
	priv = view->priv;
+
+	for (i = 0; cards[i] != NULL; i++)
+	count++;
+	
-	for (i = 0; i < G_N_ELEMENTS (cards); i++) {
+	for (i = 0; i < count; i++) {
 		const char *name, *attendee = NULL;
 		char *attr = NULL;
 


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