From 6cab8b63ebbf27525b53cf75ff18d5811fa2d39a Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Thu, 22 Nov 2012 21:30:10 -0600 Subject: Fix deprecations and warnings --- src/dlg-prop.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dlg-prop.c') diff --git a/src/dlg-prop.c b/src/dlg-prop.c index 5c76660..94af615 100644 --- a/src/dlg-prop.c +++ b/src/dlg-prop.c @@ -145,7 +145,11 @@ dlg_prop (FrWindow *window) label = _gtk_builder_get_widget (data->builder, "p_size_label"); size = get_file_size (fr_window_get_archive_uri (window)); +#if GLIB_CHECK_VERSION (2, 30, 0) + s = g_format_size (size); +#else s = g_format_size_for_display (size); +#endif gtk_label_set_text (GTK_LABEL (label), s); g_free (s); @@ -165,7 +169,11 @@ dlg_prop (FrWindow *window) } label = _gtk_builder_get_widget (data->builder, "p_uncomp_size_label"); +#if GLIB_CHECK_VERSION (2, 30, 0) + s = g_format_size (uncompressed_size); +#else s = g_format_size_for_display (uncompressed_size); +#endif gtk_label_set_text (GTK_LABEL (label), s); g_free (s); -- cgit v1.2.1