about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRaphael Graf <r@undefined.ch>2011-04-16 10:10:42 +0000
committerRaphael Graf <r@undefined.ch>2011-04-16 10:10:42 +0000
commitbbe9c96a826cd775c2c7f92e8f0ec0a3d6153fe3 (patch)
tree841db92c08f798640f66c4d46d3bbbefa8422f4c
parent6fa890e49403a7ecd55b7e51f9d5fb2306d8eff2 (diff)
downloadxombrero-bbe9c96a826cd775c2c7f92e8f0ec0a3d6153fe3.tar.gz
Fix window-title and tab-label of the 'about:blank' page.
ok marco@
-rw-r--r--xxxterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 241869e..2429ea7 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -5942,6 +5942,9 @@ notify_title_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t)
 	if (set) {
 		gtk_label_set_text(GTK_LABEL(t->label), set);
 		gtk_window_set_title(GTK_WINDOW(main_window), set);
+	} else {
+		gtk_label_set_text(GTK_LABEL(t->label), "(untitled)");
+		gtk_window_set_title(GTK_WINDOW(main_window), XT_NAME);
 	}
 }