From 1e38dc7b3703f66cb064209a5c67d50ede608081 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 8 Oct 2016 19:20:45 -0700 Subject: [PATCH] callgraph-view: add missing get_profile() accessor --- lib/sp-callgraph-view.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/sp-callgraph-view.c b/lib/sp-callgraph-view.c index d049e4cd..9158d3ce 100644 --- a/lib/sp-callgraph-view.c +++ b/lib/sp-callgraph-view.c @@ -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)