aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/shot/e_mod_main.c
diff options
context:
space:
mode:
authorChidambar Zinnoury <illogict@online.fr>2012-07-14 20:50:21 +0000
committerChidambar Zinnoury <illogict@online.fr>2012-07-14 20:50:21 +0000
commit116f99412651d26b1e55fa0ee706b55e88bdfbdd (patch)
treea70328320a9ede80a238eee8c83d3ccf6c67fd75 /src/modules/shot/e_mod_main.c
parentf198b01b07d6c29500e663fbf5ecc56843c3760e (diff)
downloadenlightenment-116f99412651d26b1e55fa0ee706b55e88bdfbdd.tar.gz
enlightenment-116f99412651d26b1e55fa0ee706b55e88bdfbdd.tar.xz
enlightenment-116f99412651d26b1e55fa0ee706b55e88bdfbdd.zip
e: use standard units for file sizes and use helpers instead of duplicating code.
SVN revision: 73858
Diffstat (limited to 'src/modules/shot/e_mod_main.c')
-rw-r--r--src/modules/shot/e_mod_main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index e8be3941b..4790e6463 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -337,11 +337,15 @@ _upload_progress_cb(void *data __UNUSED__, int ev_type __UNUSED__, void *event)
if (o_label)
{
char buf[1024];
-
+ char *buf_now, *buf_total;
+
+ buf_now = e_util_size_string_get(ev->up.now);
+ buf_total = e_util_size_string_get(ev->up.total);
snprintf(buf, sizeof(buf),
- "Uploaded %1.1fKB / %1.1fKB",
- ev->up.now / 1024,
- ev->up.total / 1024);
+ _("Uploaded %s / %s"),
+ buf_now, buf_total);
+ E_FREE(buf_now);
+ E_FREE(buf_total);
e_widget_label_text_set(o_label, buf);
}
return EINA_FALSE;