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



commit 4502a5afc2447e4a500b593a825ea13ba2afb2f2
Author: punit <jpunit novell com>
Date:   Tue Apr 13 14:28:23 2010 +0200

    Bug #610229 - Status bar progress goes beyond 100 percentage

 e-util/e-activity.c |    2 +-
 mail/mail-mt.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-activity.c b/e-util/e-activity.c
index 9f8faf7..f8a3510 100644
--- a/e-util/e-activity.c
+++ b/e-util/e-activity.c
@@ -234,7 +234,7 @@ activity_describe (EActivity *activity)
 		 * complete is known. */
 		g_string_printf (
 			string, _("%s (%d%% complete)"), text,
-			(gint) (percent * 100.0 + 0.5));
+			(gint) (percent));
 	}
 
 	return g_string_free (string, FALSE);
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index eefbd6d..5f656c9 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -940,7 +940,7 @@ op_status_exec (struct _op_status_msg *m)
 		}
 	} else if (data->activity != NULL) {
 		e_activity_set_primary_text (data->activity, out);
-		e_activity_set_percent (data->activity, pc / 100.0);
+		e_activity_set_percent (data->activity, pc);
 		g_mutex_unlock (mail_msg_lock);
 	} else {
 		g_mutex_unlock (mail_msg_lock);



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