about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-01-02 22:09:50 +0000
committerMarco Peereboom <marco@conformal.com>2011-01-02 22:09:50 +0000
commite72e891c22139ea1606679ef2333e54410297299 (patch)
tree4787c4462f1e970f48f0e2bc64bc3836127a262f
parentae9217fc4da6c0c3d9c78cbe57213505572bff42 (diff)
downloadxombrero-e72e891c22139ea1606679ef2333e54410297299.tar.gz
when a page fails loading pring (untitled) instead of Loading
-rw-r--r--xxxterm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index b227708..db84d37 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -3669,6 +3669,7 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t)
 	const gchar		*set = NULL, *uri = NULL, *title = NULL;
 	struct history		*h, find;
 	int			add = 0;
+	const gchar		*s_loading;
 
 	DNPRINTF(XT_D_URL, "notify_load_status_cb: %d\n",
 	    webkit_web_view_get_load_status(wview));
@@ -3755,6 +3756,9 @@ notify_load_status_cb(WebKitWebView* wview, GParamSpec* pspec, struct tab *t)
 		gtk_spinner_stop(GTK_SPINNER(t->spinner));
 		gtk_widget_hide(t->spinner);
 #endif
+	s_loading = gtk_label_get_text(GTK_LABEL(t->label));
+	if (!strcmp(s_loading, "Loading"))
+		gtk_label_set_text(GTK_LABEL(t->label), "(untitled)");
 	default:
 		gtk_widget_set_sensitive(GTK_WIDGET(t->stop), FALSE);
 		break;