diff options
author | Wouter Van Rooy <woutervanrooy@gmail.com> | 2012-06-17 22:05:34 +0200 |
---|---|---|
committer | Wouter Van Rooy <woutervanrooy@gmail.com> | 2012-06-17 22:05:34 +0200 |
commit | eaec32659caffc12bff63465c931522de5a202a6 (patch) | |
tree | 0c7f5dcd695dd0c669941e823b338024535caeb1 /svte.c | |
parent | 695af4b69b1baaf7626f1a6e10be39615174f5c6 (diff) |
Fixed the empty tab labels
Diffstat (limited to 'svte.c')
-rw-r--r-- | svte.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -21,7 +21,6 @@ #include "defaults.h" #include <gdk/gdkkeysyms.h> #include <glib/goption.h> -#include <glib.h> #include <gtk/gtk.h> #include <vte/vte.h> #include <unistd.h> @@ -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); |