[evolution-mapi] Bug #610229 - Status bar progress goes beyond 100 percentage



commit e689b6905a17fa75772265e5407b946257e83667
Author: punit <jpunit novell com>
Date:   Tue Apr 13 14:21:52 2010 +0200

    Bug #610229 - Status bar progress goes beyond 100 percentage

 src/calendar/e-cal-backend-mapi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index d8956d8..0edc26a 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -384,7 +384,7 @@ get_element_type (icalcomponent_kind kind)
 static void
 notify_progress (ECalBackendMAPI *cbmapi, guint64 index, guint64 total)
 {
-	guint percent = ((gfloat)index/total) * 100;
+	guint percent = ((gfloat) index/total) * 100;
 	gchar *progress_string;
 
 	if (percent > 100)
@@ -392,7 +392,7 @@ notify_progress (ECalBackendMAPI *cbmapi, guint64 index, guint64 total)
 
 	/* To translators: This message is displayed on the status bar when calendar/tasks/memo items are being fetched from the server. */
 	progress_string = g_strdup_printf (_("Loading items in folder %s"),
-				e_source_get_property (e_cal_backend_get_source (E_CAL_BACKEND (cbmapi)), "name"));
+				e_source_peek_name (e_cal_backend_get_source (E_CAL_BACKEND (cbmapi))));
 
 	e_cal_backend_notify_view_progress (E_CAL_BACKEND (cbmapi), progress_string, percent);
 



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