[Xfce4-commits] [xfce/thunar] 01/02: Show numeric(%) progress in file operation dialog (Bug #14102)
noreply at xfce.org
noreply at xfce.org
Fri Aug 10 03:34:15 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e 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 f61844b6c18e7d9a9c46c4f2ccde68cab7d5ff13
Author: Andre Miranda <andreldm at 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.
More information about the Xfce4-commits
mailing list