From e79233a5fa1dbcdc368a2fa50f0accdbe6daffd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 18 Feb 2020 12:48:22 +0100 Subject: Drop unsupported chars from title --- surf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/surf.c b/surf.c index 4960f58..faa0eb0 100644 --- a/surf.c +++ b/surf.c @@ -631,10 +631,10 @@ updatetitle(Client *c) getpagestats(c); if (c->progress != 100) - title = g_strdup_printf("[%i%%]%s %s", + title = g_strdup_printf("[%i%%] %s%s", c->progress, pagestats, name); else - title = g_strdup_printf("%s %s", + title = g_strdup_printf("%s%s", pagestats, name); gtk_window_set_title(GTK_WINDOW(c->win), title); @@ -665,9 +665,9 @@ void getpagestats(Client *c) { if (c->https) - pagestats[0] = (c->tlserr || c->insecure) ? '⚠' : ' '; + pagestats[0] = (c->tlserr || c->insecure) ? '!' : '\0'; else - pagestats[0] = '⚡'; + pagestats[0] = '/'; pagestats[1] = '\0'; } -- cgit v1.2.3