[Xfce4-commits] [xfce/thunar] 01/01: Show exact size in bytes in directory properties dialog (bug #12858)

noreply at xfce.org noreply at xfce.org
Thu Feb 1 13:01:49 CET 2018


This is an automated email from the git hooks/post-receive script.

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/thunar.

commit ecd8de58f5b784396f1fdf634004611e90fdc325
Author: Adam Purkrt <adam at purkrt.net>
Date:   Thu Feb 1 12:57:57 2018 +0100

    Show exact size in bytes in directory properties dialog (bug #12858)
---
 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 2f32913..d51527b 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);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list