libsysprof-ui: add helper to get current

This commit is contained in:
Christian Hergert
2019-05-19 11:10:51 -07:00
parent e983c9f219
commit a7b18281e6
2 changed files with 9 additions and 6 deletions

View File

@ -161,7 +161,7 @@ sysprof_notebook_open (SysprofNotebook *self,
sysprof_display_open (SYSPROF_DISPLAY (display), file);
}
static SysprofDisplay *
SysprofDisplay *
sysprof_notebook_get_current (SysprofNotebook *self)
{
gint page;

View File

@ -22,6 +22,7 @@
#include <gtk/gtk.h>
#include "sysprof-display.h"
#include "sysprof-version-macros.h"
G_BEGIN_DECLS
@ -40,13 +41,15 @@ struct _SysprofNotebookClass
};
SYSPROF_AVAILABLE_IN_ALL
GtkWidget *sysprof_notebook_new (void);
GtkWidget *sysprof_notebook_new (void);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_close_current (SysprofNotebook *self);
SysprofDisplay *sysprof_notebook_get_current (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_open (SysprofNotebook *self,
GFile *file);
void sysprof_notebook_close_current (SysprofNotebook *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_save (SysprofNotebook *self);
void sysprof_notebook_open (SysprofNotebook *self,
GFile *file);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_notebook_save (SysprofNotebook *self);
G_END_DECLS