diff src/gtkft.c @ 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 ad62cd866435
children 56bfd35a5a48
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));