diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-12-20 23:03:46 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-12-20 23:03:46 (EST) |
commit | f9b860af3d1ccb2787431be33c278d7344f61a58 (patch) | |
tree | b5efd28db228cedf32676bf6c7cd93c79abba48d /src | |
parent | a707af81ecb5f30d3392c46ce7ea7ee122fbc4ae (diff) | |
download | marquee-f9b860af3d1ccb2787431be33c278d7344f61a58.zip marquee-f9b860af3d1ccb2787431be33c278d7344f61a58.tar.gz marquee-f9b860af3d1ccb2787431be33c278d7344f61a58.tar.bz2 |
mq_tab_page_set_title(): New function
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 |