mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-gtk: add load vfunc to handle callgraph
This commit is contained in:
@ -50,6 +50,9 @@ struct _SysprofCallgraphViewClass
|
|||||||
SysprofCallgraphNode *node,
|
SysprofCallgraphNode *node,
|
||||||
SysprofDocumentFrame *frame,
|
SysprofDocumentFrame *frame,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
|
void (*load) (SysprofCallgraphView *self,
|
||||||
|
SysprofCallgraph *callgraph);
|
||||||
};
|
};
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|||||||
@ -214,6 +214,9 @@ sysprof_callgraph_view_reload_cb (GObject *object,
|
|||||||
g_object_ref (GTK_SORTER (sorter)));
|
g_object_ref (GTK_SORTER (sorter)));
|
||||||
model = gtk_multi_selection_new (g_object_ref (G_LIST_MODEL (sort_model)));
|
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));
|
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
|
static gboolean
|
||||||
|
|||||||
Reference in New Issue
Block a user