diff options
Diffstat (limited to 'src/notebook.c')
-rw-r--r-- | src/notebook.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c index 1a33a4c..f5572b6 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -247,6 +247,12 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri, return node->page; } +gint +mq_notebook_get_n_pages(MqNotebook *notebook) +{ + return mq_tree_size(MQ_TREE(notebook->tree) - 1); +} + void mq_notebook_update_tab_title(MqNotebook *notebook, MqTabPage *tab_page, const gchar *title) |