mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
cpuaid: port to GTK 4
This commit is contained in:
@ -221,7 +221,7 @@ sysprof_cpu_aid_present_finish (SysprofAid *aid,
|
|||||||
"y-lower", 0.0,
|
"y-lower", 0.0,
|
||||||
"y-upper", 100.0,
|
"y-upper", 100.0,
|
||||||
NULL);
|
NULL);
|
||||||
gtk_container_add (GTK_CONTAINER (freq), GTK_WIDGET (freq_row));
|
sysprof_visualizer_group_insert (freq, freq_row, -1, FALSE);
|
||||||
|
|
||||||
over_row = g_object_new (SYSPROF_TYPE_LINE_VISUALIZER,
|
over_row = g_object_new (SYSPROF_TYPE_LINE_VISUALIZER,
|
||||||
"title", _("CPU Usage (All)"),
|
"title", _("CPU Usage (All)"),
|
||||||
@ -323,17 +323,17 @@ sysprof_cpu_aid_present_finish (SysprofAid *aid,
|
|||||||
if (has_usage && !found_combined)
|
if (has_usage && !found_combined)
|
||||||
sysprof_visualizer_group_insert (usage, over_row, 0, FALSE);
|
sysprof_visualizer_group_insert (usage, over_row, 0, FALSE);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (GTK_WIDGET (over_row));
|
g_object_unref (GTK_WIDGET (over_row));
|
||||||
|
|
||||||
if (has_usage)
|
if (has_usage)
|
||||||
sysprof_display_add_group (present->display, usage);
|
sysprof_display_add_group (present->display, usage);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (GTK_WIDGET (usage));
|
g_object_unref (GTK_WIDGET (usage));
|
||||||
|
|
||||||
if (has_freq)
|
if (has_freq)
|
||||||
sysprof_display_add_group (present->display, freq);
|
sysprof_display_add_group (present->display, freq);
|
||||||
else
|
else
|
||||||
gtk_widget_destroy (GTK_WIDGET (freq));
|
g_object_unref (GTK_WIDGET (freq));
|
||||||
}
|
}
|
||||||
|
|
||||||
return counters != NULL;
|
return counters != NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user