diff options
author | Steve Zesch <[email protected]> | 2012-11-22 19:35:12 -0800 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-22 19:35:12 -0800 |
commit | 13ed1839179d6ee4cd01e3959f29437d549571b6 (patch) | |
tree | de0b4c14457c00003ca8c09a3dc781b423524c34 /src/dlg-prop.c | |
parent | cee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff) | |
parent | 6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (diff) | |
download | engrampa-13ed1839179d6ee4cd01e3959f29437d549571b6.tar.bz2 engrampa-13ed1839179d6ee4cd01e3959f29437d549571b6.tar.xz |
Merge pull request #10 from sbalneav/master
Deprecations and warnings
Diffstat (limited to 'src/dlg-prop.c')
-rw-r--r-- | src/dlg-prop.c | 8 |
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); |