[evolution-patches] [calendar-groupwise] fix for 311708
- From: Chakravarthi <pchakravarthi novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] [calendar-groupwise] fix for 311708
- Date: Thu, 11 Aug 2005 15:06:23 +0530
hi,
attached is the fix for 311708.
please review.
regards.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.492
diff -u -p -w -r1.492 ChangeLog
--- ChangeLog 9 Aug 2005 22:41:00 -0000 1.492
+++ ChangeLog 11 Aug 2005 09:23:04 -0000
@@ -1,3 +1,9 @@
+2005-08-11 P. S. Chakravarthi <pchakravarthi novell com>
+
+ Fixes #311078
+ * backends/groupwise/e-cal-backend-groupwise.c:
+ (populate_cache): percent is not allowed to go beyond 100
+
2005-08-06 P. S. Chakravarthi <pchakravarthi novell com>
Fixes #309499
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.159
diff -u -p -w -r1.159 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c 25 Jul 2005 13:55:59 -0000 1.159
+++ backends/groupwise/e-cal-backend-groupwise.c 11 Aug 2005 09:23:10 -0000
@@ -174,6 +174,13 @@ populate_cache (ECalBackendGroupwise *cb
/* Show the progress information */
num++;
percent = ((float) num/total) * 100;
+
+ /* FIXME The total obtained from the server is wrong. Sometimes the num can
+ be greater than the total. The following makes sure that the percentage is not >= 100 */
+
+ if (percent > 100)
+ percent = 99;
+
progress_string = g_strdup_printf (_("Loading %s items"), type);
e_cal_backend_notify_view_progress (E_CAL_BACKEND (cbgw), progress_string, percent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]