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/tab-page.c | |
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/tab-page.c')
-rw-r--r-- | src/tab-page.c | 10 |
1 files changed, 10 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)); |