diff options
-rw-r--r-- | src/notebook.c | 10 | ||||
-rw-r--r-- | src/notebook.h | 3 |
2 files changed, 13 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) { diff --git a/src/notebook.h b/src/notebook.h index 5d00074..43199f9 100644 --- a/src/notebook.h +++ b/src/notebook.h @@ -68,6 +68,9 @@ gint mq_notebook_get_n_pages(MqNotebook *notebook); void +mq_notebook_set_current_page(MqNotebook *notebook, gint page_num); + +void mq_notebook_update_tab_title(MqNotebook *notebook, MqTabPage *tab_page, const gchar *title); |