notebook: add notebook helpers

This commit is contained in:
Christian Hergert
2021-10-01 14:23:03 -07:00
parent d9692fb055
commit 34cc130c3b
2 changed files with 55 additions and 0 deletions

View File

@ -70,5 +70,16 @@ gboolean sysprof_notebook_get_always_show_tabs (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_set_always_show_tabs (SysprofNotebook *self,
gboolean always_show_tabs);
SYSPROF_AVAILABLE_IN_ALL
guint sysprof_notebook_get_n_pages (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
SysprofDisplay *sysprof_notebook_get_nth_page (SysprofNotebook *self,
guint nth);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_set_current_page (SysprofNotebook *self,
int page);
SYSPROF_AVAILABLE_IN_ALL
int sysprof_notebook_append (SysprofNotebook *self,
SysprofDisplay *display);
G_END_DECLS