libsysprof-gtk: add load vfunc to handle callgraph

This commit is contained in:
Christian Hergert
2023-06-09 17:41:22 -07:00
parent 13e1ace8dc
commit 6ed55e48df
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,9 @@ struct _SysprofCallgraphViewClass
SysprofCallgraphNode *node,
SysprofDocumentFrame *frame,
gpointer user_data);
void (*load) (SysprofCallgraphView *self,
SysprofCallgraph *callgraph);
};
G_END_DECLS

View File

@ -214,6 +214,9 @@ sysprof_callgraph_view_reload_cb (GObject *object,
g_object_ref (GTK_SORTER (sorter)));
model = gtk_multi_selection_new (g_object_ref (G_LIST_MODEL (sort_model)));
gtk_column_view_set_model (self->column_view, GTK_SELECTION_MODEL (model));
if (SYSPROF_CALLGRAPH_VIEW_GET_CLASS (self)->load)
SYSPROF_CALLGRAPH_VIEW_GET_CLASS (self)->load (self, callgraph);
}
static gboolean