[evolution-mapi/gnome-2-30] Bug #610229 - Status bar progress goes beyond 100 percentage



commit 3513f1b3cf5daed145ec75983505de4c3320d975
Author: punit <jpunit novell com>
Date:   Tue Apr 13 14:22:53 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 f4c6e6b..e020f85 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -382,7 +382,7 @@ get_element_type (icalcomponent_kind kind)
 static void 
 notify_progress (ECalBackendMAPI *cbmapi, guint64 index, guint64 total)
 {
-	guint percent = ((float)index/total) * 100 ;
+	guint percent = ((float) index/total) * 100 ;
 	gchar *progress_string;
 
 	if (percent > 100)
@@ -390,7 +390,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]