summaryrefslogtreecommitdiffstats
path: root/src/notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/notebook.c')
-rw-r--r--src/notebook.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 5a43988..48957c9 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -289,6 +289,16 @@ mq_notebook_get_n_pages(MqNotebook *notebook)
}
void
+mq_notebook_set_current_page(MqNotebook *notebook, gint page_num)
+{
+ MqTabTree *node;
+
+ node = MQ_TAB_TREE(mq_tree_seek(MQ_TREE(notebook->tree), page_num));
+ notebook->current_page = node->page;
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page_num);
+}
+
+void
mq_notebook_update_tab_title(MqNotebook *notebook, MqTabPage *tab_page,
const gchar *title)
{