From e72e891c22139ea1606679ef2333e54410297299 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sun, 2 Jan 2011 22:09:50 +0000 Subject: when a page fails loading pring (untitled) instead of Loading --- xxxterm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xxxterm.c') 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; -- cgit 1.4.1-2-gfad0