From f8a3206bbe93b2ae506fafe04f1da5a5b4ca22da Mon Sep 17 00:00:00 2001 From: Adam Purkrt Date: Thu, 1 Feb 2018 12:02:45 +0100 Subject: [PATCH] Show exact bytecount too Added showing exact size in bytes too, which is a valuable info in a number of cases. Wrapping is enabled for the size label, to ensure the info is always shown complete. --- thunar/thunar-size-label.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-size-label.c b/thunar/thunar-size-label.c index 2f329135..d51527bc 100644 --- a/thunar/thunar-size-label.c +++ b/thunar/thunar-size-label.c @@ -176,7 +176,7 @@ thunar_size_label_init (ThunarSizeLabel *size_label) size_label->label = gtk_label_new (_("Calculating...")); gtk_label_set_xalign (GTK_LABEL (size_label->label), 0.0f); gtk_label_set_selectable (GTK_LABEL (size_label->label), TRUE); - gtk_label_set_ellipsize (GTK_LABEL (size_label->label), PANGO_ELLIPSIZE_MIDDLE); + gtk_label_set_line_wrap (GTK_LABEL (size_label->label), TRUE); gtk_box_pack_start (GTK_BOX (size_label), size_label->label, TRUE, TRUE, 0); gtk_widget_show (size_label->label); @@ -411,7 +411,7 @@ thunar_size_label_status_update (ThunarDeepCountJob *job, if (G_LIKELY (n > unreadable_directory_count)) { /* update the label */ - size_string = g_format_size_full (total_size, size_label->file_size_binary ? G_FORMAT_SIZE_IEC_UNITS : G_FORMAT_SIZE_DEFAULT); + size_string = g_format_size_full (total_size, G_FORMAT_SIZE_LONG_FORMAT | (size_label->file_size_binary ? G_FORMAT_SIZE_IEC_UNITS : G_FORMAT_SIZE_DEFAULT)); text = g_strdup_printf (ngettext ("%u item, totalling %s", "%u items, totalling %s", n), n, size_string); g_free (size_string); -- 2.16.1