summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-12-20 23:03:46 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-12-20 23:03:46 (EST)
commitf9b860af3d1ccb2787431be33c278d7344f61a58 (patch)
treeb5efd28db228cedf32676bf6c7cd93c79abba48d /src
parenta707af81ecb5f30d3392c46ce7ea7ee122fbc4ae (diff)
downloadmarquee-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.c10
-rw-r--r--src/tab-page.h3
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