diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-page.c | 10 | ||||
-rw-r--r-- | src/tab-page.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/tab-page.c b/src/tab-page.c index 9e90022..c695e1b 100644 --- a/src/tab-page.c +++ b/src/tab-page.c @@ -290,6 +290,16 @@ mq_tab_page_get_title(MqTabPage *tab_page) } void +mq_tab_page_set_title(MqTabPage *tab_page, const gchar *title) +{ + tab_page->title = title; + mq_notebook_update_tab_title( + MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_page))), + tab_page, + tab_page->title); +} + +void mq_tab_page_scroll_tab_labels(MqTabPage *node) { mq_tab_label_scroll(MQ_TAB_LABEL(node->label)); diff --git a/src/tab-page.h b/src/tab-page.h index 6ec835e..c676099 100644 --- a/src/tab-page.h +++ b/src/tab-page.h @@ -87,6 +87,9 @@ const gchar * mq_tab_page_get_title(MqTabPage *tab_page) G_GNUC_PURE; void +mq_tab_page_set_title(MqTabPage *tab_page, const gchar *title); + +void mq_tab_page_scroll_tab_labels(MqTabPage *node); void |