[Xfce4-commits] <xfce4-taskmanager:master> Don't make redundant messages for translators
Mike Massonnet
noreply at xfce.org
Sun Jun 13 18:02:01 CEST 2010
Updating branch refs/heads/master
to d40bd9362a709c26abb3c17b9e4d151eacb5e3fa (commit)
from 5aed5c0e3cf8416739fcd5d019e33d4c8f9ed97c (commit)
commit d40bd9362a709c26abb3c17b9e4d151eacb5e3fa
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Sun Jun 13 18:00:29 2010 +0200
Don't make redundant messages for translators
src/process-window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/process-window.c b/src/process-window.c
index 267cf6e..ecd56aa 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -494,6 +494,7 @@ void
xtm_process_window_set_system_info (XtmProcessWindow *window, guint num_processes, gfloat cpu, gfloat memory, gfloat swap)
{
gchar text[100];
+ gchar value[4];
g_return_if_fail (XTM_IS_PROCESS_WINDOW (window));
g_return_if_fail (GTK_IS_STATUSBAR (window->priv->statusbar));
@@ -501,11 +502,13 @@ xtm_process_window_set_system_info (XtmProcessWindow *window, guint num_processe
g_object_set (window->priv->statusbar, "num-processes", num_processes, "cpu", cpu, "memory", memory, "swap", swap, NULL);
xtm_process_monitor_add_peak (XTM_PROCESS_MONITOR (window->priv->cpu_monitor), cpu / 100.0);
- g_snprintf (text, 100, _("CPU: %.0f%%"), cpu);
+ g_snprintf (value, 4, "%.0f", cpu);
+ g_snprintf (text, 100, _("CPU: %s%%"), value);
gtk_widget_set_tooltip_text (window->priv->cpu_monitor, text);
xtm_process_monitor_add_peak (XTM_PROCESS_MONITOR (window->priv->mem_monitor), memory / 100.0);
- g_snprintf (text, 100, _("Memory: %.0f%%"), memory);
+ g_snprintf (value, 4, "%.0f", memory);
+ g_snprintf (text, 100, _("Memory: %s%%"), value);
gtk_widget_set_tooltip_text (window->priv->mem_monitor, text);
}
More information about the Xfce4-commits
mailing list