aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Van Rooy <woutervanrooy@gmail.com>2012-06-17 22:05:34 +0200
committerWouter Van Rooy <woutervanrooy@gmail.com>2012-06-17 22:05:34 +0200
commiteaec32659caffc12bff63465c931522de5a202a6 (patch)
tree0c7f5dcd695dd0c669941e823b338024535caeb1
parent695af4b69b1baaf7626f1a6e10be39615174f5c6 (diff)
Fixed the empty tab labels
-rw-r--r--svte.c5
1 files 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 <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);