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

andre pushed a 
commit to branch 
xfce-4.14
in repository xfce/thunar.

commit 667e1e10a25bb8a23dea685a89e6e775c7b430c9
Author: Andre Miranda <andre...@xfce.org>
Date:   Thu Aug 9 22:31:15 2018 -0300

    Show numeric(%) progress in file operation dialog (Bug #14102)
---
 thunar/thunar-progress-view.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/thunar/thunar-progress-view.c b/thunar/thunar-progress-view.c
index 96b7129..839a262 100644
--- a/thunar/thunar-progress-view.c
+++ b/thunar/thunar-progress-view.c
@@ -482,11 +482,12 @@ thunar_progress_view_percent (ThunarProgressView *view,
 
   /* set progress text */
   if (THUNAR_IS_TRANSFER_JOB (job))
-    {
-      text = thunar_transfer_job_get_status (THUNAR_TRANSFER_JOB (job));
-      gtk_label_set_text (GTK_LABEL (view->progress_label), text);
-      g_free (text);
-    }
+    text = thunar_transfer_job_get_status (THUNAR_TRANSFER_JOB (job));
+  else
+    text = g_strdup_printf ("%.2f%%", percent);
+
+  gtk_label_set_text (GTK_LABEL (view->progress_label), text);
+  g_free (text);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to