visualizers: clear selected row when showing details

The details don't correspond to any selected row, so clear the row when
we switch to the details page.
This commit is contained in:
Christian Hergert
2020-01-23 12:36:04 -08:00
parent bcfaa6caa8
commit 460df56fa5
4 changed files with 14 additions and 1 deletions

View File

@ -747,3 +747,11 @@ sysprof_visualizers_frame_get_hadjustment (SysprofVisualizersFrame *self)
return gtk_range_get_adjustment (GTK_RANGE (self->hscrollbar));
}
void
sysprof_visualizers_frame_unselect_row (SysprofVisualizersFrame *self)
{
g_return_if_fail (SYSPROF_IS_VISUALIZERS_FRAME (self));
gtk_list_box_unselect_all (self->groups);
}