From eaec32659caffc12bff63465c931522de5a202a6 Mon Sep 17 00:00:00 2001 From: Wouter Van Rooy Date: Sun, 17 Jun 2012 22:05:34 +0200 Subject: Fixed the empty tab labels --- svte.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svte.c b/svte.c index a623fb3..8c102d9 100644 --- a/svte.c +++ b/svte.c @@ -21,7 +21,6 @@ #include "defaults.h" #include #include -#include #include #include #include @@ -270,6 +269,9 @@ static void tab_geometry_hints(term *t) { static void tab_title(GtkWidget *widget, term *t) { + gtk_label_set_text( + GTK_LABEL(t->label), + vte_terminal_get_window_title(VTE_TERMINAL(t->vte))); set_window_title(t); } @@ -358,7 +360,6 @@ static void tab_new() { vte_terminal_match_set_cursor_type(VTE_TERMINAL(t->vte), *tmp, GDK_HAND2); g_free(tmp); - set_window_title(t); gtk_widget_show_all(svte.notebook); gtk_notebook_set_current_page(GTK_NOTEBOOK(svte.notebook), index); gtk_widget_grab_focus(t->vte); -- cgit v1.2.3