aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpunit <jpunit@novell.com>2010-04-13 20:25:54 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-13 20:25:54 +0800
commit7e931d4c10c0b0d06c9df571589d003e43790690 (patch)
treed14e0ef9f08071e1798456826f7be9b1b4cf9ac0
parentcbbc0a2c1f8e085fac314df90a940999fdc60b51 (diff)
downloadgsoc2013-evolution-7e931d4c10c0b0d06c9df571589d003e43790690.tar.gz
gsoc2013-evolution-7e931d4c10c0b0d06c9df571589d003e43790690.tar.zst
gsoc2013-evolution-7e931d4c10c0b0d06c9df571589d003e43790690.zip
Bug #610229 - Status bar progress goes beyond 100 percentage
-rw-r--r--e-util/e-activity.c2
-rw-r--r--mail/mail-mt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-activity.c b/e-util/e-activity.c
index 9f8faf75cb..f8a3510049 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 0af59cb1bb..de59213ce5 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -937,7 +937,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);