Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitd9cd162c1af558f75d508f4dd75b6b7f162e0700 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-06-14 05:59:02 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-06-14 05:59:24 +0200
Files6a042766677b785ed05bd0ab22f1a48451c5ed9b
goodwolf-d9cd162c1af558f75d508f4dd75b6b7f162e0700.tar
goodwolf-d9cd162c1af558f75d508f4dd75b6b7f162e0700.tar.gz
goodwolf-d9cd162c1af558f75d508f4dd75b6b7f162e0700.zip
Parent84d5d7513da5182b70a4fc11ad21ee5951f98ed0 (diff)
Synchronise the menu-label of a tab with it’s title
1 files changed, 2 insertions, 0 deletions
-rw-r--r--badwolf.c2
diff --git a/badwolf.c b/badwolf.c
index 4ce70a0..5e2a98b 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -393,7 +393,9 @@ webView_tab_label_change(struct Client *browser, const gchar *title)
gtk_notebook_set_tab_label(
GTK_NOTEBOOK(notebook), browser->box, badwolf_new_tab_box(title, browser));
+ gtk_notebook_set_menu_label_text(GTK_NOTEBOOK(notebook), browser->box, title);
+ // Set the window title if the title change was on the current tab
if(get_tab_position(GTK_CONTAINER(notebook), browser->box) ==
gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook)))
gtk_window_set_title(GTK_WINDOW(browser->window->main_window), title);