diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2019-09-10 04:04:17 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2019-09-10 04:04:17 -0400 |
commit | cb1bbf826330bd01315f0de82afc6a27a166d7b3 (patch) | |
tree | ac5da8db7288fad109ed277268c3abfdd7faa5cb /libpurple/xfer.c | |
parent | 9cc5ed9ce22124e4830527cf6777ed9177407378 (diff) | |
download | pidgin-cb1bbf826330bd01315f0de82afc6a27a166d7b3.tar.gz |
Replace purple_str_size_to_units by g_format_size.
Note, since that function uses base 10 units, I also changed the
transfer speeds to base 10 (KB/s, not KiB/s).
Diffstat (limited to 'libpurple/xfer.c')
-rw-r--r-- | libpurple/xfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/xfer.c b/libpurple/xfer.c index 52a5feb809..9ec5c0df73 100644 --- a/libpurple/xfer.c +++ b/libpurple/xfer.c @@ -455,7 +455,7 @@ purple_xfer_ask_recv(PurpleXfer *xfer) if (purple_xfer_get_filename(xfer) != NULL) { size = purple_xfer_get_size(xfer); - size_buf = purple_str_size_to_units(size); + size_buf = g_format_size_full(size, G_FORMAT_SIZE_LONG_FORMAT); buf = g_strdup_printf(_("%s wants to send you %s (%s)"), buddy ? purple_buddy_get_alias(buddy) : priv->who, purple_xfer_get_filename(xfer), size_buf); |