libsysprof-ui: hide unused sections

This commit is contained in:
Christian Hergert
2019-05-19 21:04:59 -07:00
parent aff39523ca
commit 8a394aaf0f
5 changed files with 22 additions and 7 deletions

View File

@ -211,6 +211,16 @@ sysprof_callgraph_view_load (SysprofCallgraphView *self,
g_clear_object (&functions);
}
void
_sysprof_callgraph_view_set_failed (SysprofCallgraphView *self)
{
SysprofCallgraphViewPrivate *priv = sysprof_callgraph_view_get_instance_private (self);
g_return_if_fail (SYSPROF_IS_CALLGRAPH_VIEW (self));
gtk_stack_set_visible_child_name (priv->stack, "empty-state");
}
static void
sysprof_callgraph_view_unload (SysprofCallgraphView *self)
{