Don't make redundant messages for translators
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user