callgraph-view: add missing get_profile() accessor

This commit is contained in:
Christian Hergert
2016-10-08 19:20:45 -07:00
parent 37edc29cbb
commit 1e38dc7b37

View File

@ -217,6 +217,21 @@ sp_callgraph_view_unload (SpCallgraphView *self)
gtk_tree_view_set_model (priv->descendants_view, NULL);
}
/**
* sp_callgraph_view_get_profile:
*
* Returns: (transfer none): An #SpCallgraphProfile.
*/
SpCallgraphProfile *
sp_callgraph_view_get_profile (SpCallgraphView *self)
{
SpCallgraphViewPrivate *priv = sp_callgraph_view_get_instance_private (self);
g_return_val_if_fail (SP_IS_CALLGRAPH_VIEW (self), NULL);
return priv->profile;
}
void
sp_callgraph_view_set_profile (SpCallgraphView *self,
SpCallgraphProfile *profile)