[sysprof/wip/visualizers] callgraph-view: add missing get_profile() accessor
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/visualizers] callgraph-view: add missing get_profile() accessor
- Date: Sun, 9 Oct 2016 02:21:45 +0000 (UTC)
commit 1e38dc7b3703f66cb064209a5c67d50ede608081
Author: Christian Hergert <chergert redhat com>
Date: Sat Oct 8 19:20:45 2016 -0700
callgraph-view: add missing get_profile() accessor
lib/sp-callgraph-view.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-callgraph-view.c b/lib/sp-callgraph-view.c
index d049e4c..9158d3c 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]