[evolution-mapi/gnome-2-30] Bug #610229 - Status bar progress goes beyond 100 percentage
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-30] Bug #610229 - Status bar progress goes beyond 100 percentage
- Date: Tue, 13 Apr 2010 12:23:30 +0000 (UTC)
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]