[evolution-patches] patch to fix #302817



hi,

The attached patch fixes
http://bugzilla.gnome.org/show_bug.cgi?id=302817

changes are made in plugins/groupwise-features/status-track.c

just adjusted the row counts.

Thanks,
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/ChangeLog,v
retrieving revision 1.21
diff -u -p -r1.21 ChangeLog
--- ChangeLog	29 Jul 2005 05:34:17 -0000	1.21
+++ ChangeLog	29 Jul 2005 09:31:10 -0000
@@ -1,4 +1,11 @@
 2005-07-29  Vivek Jain <jvivek novell com>
+	
+	* status-track.c: (track_status):
+	adjust row counts while calling add_detail
+	so that it doesn't overlap the entries.
+	**Fixes #302817
+
+2005-07-29  Vivek Jain <jvivek novell com>
 
 	* org-gnome-groupwise-features.eplug.xml:
 	for status strack  removed "Item" tag entries, included a factory method
Index: status-track.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/groupwise-features/status-track.c,v
retrieving revision 1.2
diff -u -p -r1.2 status-track.c
--- status-track.c	29 Jul 2005 05:34:17 -0000	1.2
+++ status-track.c	29 Jul 2005 09:31:10 -0000
@@ -190,10 +190,11 @@ track_status (EPopup *ep, EPopupItem *it
 		if (*temp2) {
 			if (strlen(temp2[0]));
 			if (strlen(temp2[1]))
-				add_recipient (table, temp2[1], row) ;
+				add_recipient (table, temp2[1], row++);
+			/*we will decrement the row if there is info to be displayed in the same line*/
 			if (strlen(temp2[2]));
 			if (strlen(temp2[3]))
-				row = add_detail (table,"delivered" , temp2[3], row) ;
+				row = add_detail (table,"delivered" , temp2[3], --row);
 			if (strlen(temp2[4]))
 				row = add_detail (table,"opened" , temp2[3], row) ;
 			if (strlen(temp2[5]))
@@ -205,7 +206,7 @@ track_status (EPopup *ep, EPopupItem *it
 			if (strlen(temp2[8]))
 				row = add_detail (table,"completed" , temp2[3], row) ;
 			if (strlen(temp2[9]))
-				row = add_detail (table,"undelivered" , temp2[3], row) ;
+				row = add_detail (table,"undelivered" , temp2[3], --row);
 		}
 		str = *(++ptr) ;
 		g_strfreev (temp2) ;


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