Index: vte.c
===================================================================
RCS file: /cvs/gnome/vte/src/vte.c,v
retrieving revision 1.404
diff -U5 -r1.404 vte.c
--- vte.c	2 May 2004 06:43:01 -0000	1.404
+++ vte.c	6 May 2004 21:50:26 -0000
@@ -4370,15 +4370,17 @@
 
 			/* Emit the signal */
 			if (strcmp(signal, "window") == 0) {
 				g_free(terminal->window_title);
 				terminal->window_title = g_strdup(validated);
+                                gdk_window_set_title (GTK_WIDGET (terminal)->window, validated);
 				vte_terminal_emit_window_title_changed(terminal);
 			} else
 			if (strcmp(signal, "icon") == 0) {
 				g_free (terminal->icon_title);
 				terminal->icon_title = g_strdup(validated);
+                                gdk_window_set_icon_name (GTK_WIDGET (terminal)->window, validated);
 				vte_terminal_emit_icon_title_changed(terminal);
 			}
 			g_free(validated);
 			g_free(title);
 
@@ -12078,10 +12080,14 @@
 		vte_terminal_set_default_colors(terminal);
 	}
 
 	/* Set the realized flag. */
 	GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED);
+
+        /* Set window/icon titles */
+        gdk_window_set_title (widget->window, "");
+        gdk_window_set_icon_name (widget->window, "");
 
 	/* Actually load the font. */
 	vte_terminal_set_font_full(terminal, terminal->pvt->fontdesc,
 				   terminal->pvt->fontantialias);
 
