[sound-juicer] Use g_format_size instead of g_format_size_for_display



commit ceca9cc5d9a1a81e3bfdb36bd6523fc079244c14
Author: phantomjinx <p g richardson phantomjinx co uk>
Date:   Fri Apr 20 20:43:59 2012 +0200

    Use g_format_size instead of g_format_size_for_display
    
    This fixes deprecation warnings.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674489

 src/sj-extracting.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/sj-extracting.c b/src/sj-extracting.c
index 0622a0e..54041da 100644
--- a/src/sj-extracting.c
+++ b/src/sj-extracting.c
@@ -306,7 +306,11 @@ confirm_overwrite_existing_file (GFile *uri, int *overwrite_mode, goffset info_s
   char *display_name, *filename, *size;
 
   display_name = g_file_get_parse_name (uri);
-  size = g_format_size_for_display (info_size);
+#if GLIB_CHECK_VERSION(2,30,0)
+  size = g_format_size (info_size);
+#else
+  size = g_format_size_for_display(info_size);
+#endif
   dialog = gtk_message_dialog_new (GTK_WINDOW (main_window), GTK_DIALOG_MODAL,
                                    GTK_MESSAGE_QUESTION,
                                    GTK_BUTTONS_NONE,



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