[Xfce4-commits] <xfce4-mount-plugin:master> format the percentage in progressbar with %
Landry Breuil
noreply at xfce.org
Thu Apr 12 15:10:04 CEST 2012
Updating branch refs/heads/master
to 1ef3ace88767345b94b3155e36d067a364c31ed9 (commit)
from 9820ef6f0d961675f8f64f49189270c7e8ce16ce (commit)
commit 1ef3ace88767345b94b3155e36d067a364c31ed9
Author: Landry Breuil <landry at xfce.org>
Date: Thu Apr 12 14:52:16 2012 +0200
format the percentage in progressbar with %
panel-plugin/mount-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/mount-plugin.c b/panel-plugin/mount-plugin.c
index 81c3e8a..261f0b9 100644
--- a/panel-plugin/mount-plugin.c
+++ b/panel-plugin/mount-plugin.c
@@ -222,7 +222,7 @@ disk_display_refresh (t_disk_display * disk_display)
((gdouble)mount_info->percent / 100) );
gtk_progress_bar_set_text (
GTK_PROGRESS_BAR(disk_display->progress_bar),
- g_strdup_printf ("%d",mount_info->percent));
+ g_strdup_printf ("%d%%",mount_info->percent));
gtk_widget_show (GTK_WIDGET(disk_display->progress_bar));
}
else /* mount_info == NULL */
More information about the Xfce4-commits
mailing list