summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c8
-rw-r--r--src/window.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index b64e1b1..6a44ae1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -126,3 +126,11 @@ mq_window_get_current_tab(MqWindow *window)
{
return window->current_tab;
}
+
+void
+mq_window_update_tab_title(MqWindow *window, guint position, const gchar *title)
+{
+ if (position == window->current_tab) {
+ set_title(window, title);
+ }
+}
diff --git a/src/window.h b/src/window.h
index 03cd327..24cd8a1 100644
--- a/src/window.h
+++ b/src/window.h
@@ -50,4 +50,8 @@ mq_window_insert_tab(MqWindow *window, GtkWidget *tab_page,
guint
mq_window_get_current_tab(MqWindow *window);
+void
+mq_window_update_tab_title(MqWindow *window, guint position,
+ const gchar *title);
+
#endif