[gtranslator] Showing percentage of translation on the statusbar
- From: Pablo Sanxiao Roca <psanxiao src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Showing percentage of translation on the statusbar
- Date: Sun, 3 Jan 2010 20:10:53 +0000 (UTC)
commit 48ec454ba3e40af603eb3cade35ba4a6a43792d8
Author: Pablo Sanxiao <psanxiao gnome org>
Date: Sun Jan 3 21:09:42 2010 +0100
Showing percentage of translation on the statusbar
src/statusbar.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/statusbar.c b/src/statusbar.c
index f2a18e0..1271653 100644
--- a/src/statusbar.c
+++ b/src/statusbar.c
@@ -356,6 +356,11 @@ gtranslator_statusbar_update_progress_bar (GtranslatorStatusbar * statusbar,
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR
(statusbar->priv->progress_bar),
percentage);
+ gchar *aux = g_strconcat(g_strdup_printf("%.2f",percentage*100),"%",NULL);
+ gtk_progress_bar_set_text (GTK_PROGRESS_BAR
+ (statusbar->priv->progress_bar),
+ aux);
+ g_free(aux);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]