libsysprof-ui: be more flexible in creating displays

This allows us to create a display for a profiler, which is needed in
embedding cases like Builder.
This commit is contained in:
Christian Hergert
2019-05-29 18:09:57 -07:00
parent cb4aed73bc
commit 5fd04d9fcb
4 changed files with 71 additions and 22 deletions

View File

@ -21,6 +21,7 @@
#pragma once
#include <gtk/gtk.h>
#include <sysprof.h>
#include "sysprof-display.h"
#include "sysprof-version-macros.h"
@ -57,5 +58,8 @@ SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_replay (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_notebook_get_can_replay (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_add_profiler (SysprofNotebook *self,
SysprofProfiler *profiler);
G_END_DECLS