libsysprof-ui: add visualizer row for cpu frequency

This commit is contained in:
Christian Hergert
2019-05-23 12:48:31 -07:00
parent b47dc40579
commit 9405294ef1
2 changed files with 86 additions and 4 deletions

View File

@ -298,6 +298,7 @@ handle_capture_results (GObject *object,
if (state->has_cpu)
{
GtkWidget *row = g_object_new (SYSPROF_TYPE_CPU_VISUALIZER_ROW,
"category", "CPU Percent",
/* Translators: CPU is the processor. */
"title", _("CPU"),
"height-request", 35,
@ -309,6 +310,22 @@ handle_capture_results (GObject *object,
gtk_container_add (GTK_CONTAINER (self), row);
}
if (state->has_cpu)
{
GtkWidget *row = g_object_new (SYSPROF_TYPE_CPU_VISUALIZER_ROW,
"category", "CPU Frequency",
/* Translators: CPU is the processor. */
"title", _("CPU Frequency"),
"height-request", 35,
"selectable", FALSE,
"visible", TRUE,
"y-lower", 0.0,
"y-upper", 100.0,
"use-dash", TRUE,
NULL);
gtk_container_add (GTK_CONTAINER (self), row);
}
if (state->has_sample)
{
GtkWidget *row = g_object_new (SYSPROF_TYPE_DEPTH_VISUALIZER_ROW,