[empathy] use g_format_size instead of g_format_size_for_display



commit ff6b2947443fef63519a945245c499dc2656bef6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Oct 25 11:42:58 2011 +0200

    use g_format_size instead of g_format_size_for_display
    
    The latter has been deprecated in GLib 2.31 but g_format_size() has been added
    in 2.30 so we can already use it without bumping the dep.

 src/empathy-ft-manager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index e23b0b4..5d2f659 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -262,11 +262,11 @@ ft_manager_format_progress_bytes_and_percentage (guint64 current,
   char *total_str, *current_str, *retval;
   char *speed_str = NULL;
 
-  total_str = g_format_size_for_display (total);
-  current_str = g_format_size_for_display (current);
+  total_str = g_format_size (total);
+  current_str = g_format_size (current);
 
   if (speed > 0)
-    speed_str = g_format_size_for_display ((goffset) speed);
+    speed_str = g_format_size ((goffset) speed);
 
   /* translators: first %s is the currently processed size, second %s is
    * the total file size */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]