Mercurial > pidgin
changeset 11994:9dd895fdafdd
[gaim-migrate @ 14287]
SF Patch #1349218 from Richard Gobeille
"This patch changes the string representing transfer
progress in the GTK file transfer window to something a
bit more user friendly."
Basically, it shows a percentage in addition to the byte count.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 06 Nov 2005 23:01:56 +0000 |
parents | aa77da6c7f21 |
children | 969fd533bd5d |
files | src/gtkft.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkft.c Sun Nov 06 22:53:21 2005 +0000 +++ b/src/gtkft.c Sun Nov 06 23:01:56 2005 +0000 @@ -194,7 +194,8 @@ get_xfer_info_strings(xfer, &kbsec, &time_elapsed, &time_remaining); - status = g_strdup_printf("%ld of %ld", + status = g_strdup_printf("%ld%% (%ld of %ld bytes)", + (unsigned long)(gaim_xfer_get_progress(xfer)*100), (unsigned long)gaim_xfer_get_bytes_sent(xfer), (unsigned long)gaim_xfer_get_size(xfer));