[file-roller/wip/jtojnar/engrampa-backports: 14/21] dlg-prop: show the exact number of bytes as part of the size




commit f20b9e207846bdfe4fd9485bbd4a7c7c44c41a14
Author: rbuj <robert buj gmail com>
Date:   Wed Sep 11 20:52:24 2019 +0200

    dlg-prop: show the exact number of bytes as part of the size
    
    Cherry picked from 
https://github.com/mate-desktop/engrampa/commit/68ef9e00239ad3f20f78fb4822446dce62d58bab

 src/dlg-prop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index b9b4b869..33c6bfd7 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -127,7 +127,7 @@ dlg_prop (FrWindow *window)
 
        label = _gtk_builder_get_widget (data->builder, "p_size_label");
        size = _g_file_get_file_size (fr_window_get_archive_file (window));
-       s = g_format_size (size);
+       s = g_format_size_full (size, G_FORMAT_SIZE_LONG_FORMAT);
        gtk_label_set_text (GTK_LABEL (label), s);
        g_free (s);
 
@@ -144,7 +144,7 @@ dlg_prop (FrWindow *window)
        }
 
        label = _gtk_builder_get_widget (data->builder, "p_uncomp_size_label");
-       s = g_format_size (uncompressed_size);
+       s = g_format_size_full (uncompressed_size, G_FORMAT_SIZE_LONG_FORMAT);
        gtk_label_set_text (GTK_LABEL (label), s);
        g_free (s);
 


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