[evolution-patches] [PATCH]Bug#58014:cannot add multiple names for the same category while assigning tasks.



This is the patch for bug #58014 that allows you to add multiple
participants for the same category while assigning tasks.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2306
diff -u -r1.2306 ChangeLog
--- a/ChangeLog	5 May 2004 05:37:30 -0000	1.2306
+++ b/ChangeLog	5 May 2004 13:40:58 -0000
@@ -1,3 +1,10 @@
+2004-05-05  Umeshtej <umeshtej gawab com>
+   
+	Fixes #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 
+	till count.
+
 2004-05-05  Larry Ewing  <lewing ximian com>
 
 	* gui/dialogs/calendar-setup.c: make sure that we don't crash if
Index: gui/e-meeting-list-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-list-view.c,v
retrieving revision 1.9
diff -u -r1.9 e-meeting-list-view.c
--- a/gui/e-meeting-list-view.c	9 Apr 2004 17:30:39 -0000	1.9
+++ b/gui/e-meeting-list-view.c	5 May 2004 13:42:23 -0000
@@ -331,10 +331,14 @@
 process_section (EMeetingListView *view, EDestination **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]