summaryrefslogtreecommitdiff
path: root/src/dlg-prop.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
committerScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
commit6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (patch)
treede0b4c14457c00003ca8c09a3dc781b423524c34 /src/dlg-prop.c
parentcee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff)
downloadengrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.bz2
engrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.xz
Fix deprecations and warnings
Diffstat (limited to 'src/dlg-prop.c')
-rw-r--r--src/dlg-prop.c8
1 files changed, 8 insertions, 0 deletions
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);