Introduction
Introduction Statistics Contact Development Disclaimer Help
tAdapt page statistics - surf - customized build of surf, the suckless webkit b…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 690118133dff7797a58cacdf9fe1e9e73ca99d7f
parent 84611a5d29d9522fab954625349e5c5ee5572abb
Author: Quentin Rameau <[email protected]>
Date: Fri, 20 Nov 2015 16:48:18 +0100
Adapt page statistics
Rename *pagestat to plural *pagestats, and resize array to reflect
missing proxy parameter.
Diffstat:
M surf.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -108,7 +108,7 @@ static Window embed = 0;
static gboolean showxid = FALSE;
static char winid[64];
static char togglestat[9];
-static char pagestat[3];
+static char pagestats[2];
static GTlsDatabase *tlsdb;
static int cookiepolicy;
static char *stylefile = NULL;
t@@ -143,7 +143,7 @@ static gboolean permissionrequested(WebKitWebView *v,
WebKitPermissionRequest *r, Client *c);
static const char *getatom(Client *c, int a);
static void gettogglestat(Client *c);
-static void getpagestat(Client *c);
+static void getpagestats(Client *c);
static char *geturi(Client *c);
static const gchar *getstyle(const char *uri);
static void setstyle(Client *c, const char *stylefile);
t@@ -1420,13 +1420,11 @@ gettogglestat(Client *c)
}
void
-getpagestat(Client *c)
+getpagestats(Client *c)
{
- const char *uri = geturi(c);
-
pagestats[0] = c->tlsflags > G_TLS_CERTIFICATE_VALIDATE_ALL ? '-' :
c->tlsflags > 0 ? 'U' : 'T';
- pagestat[1] = '\0';
+ pagestats[1] = '\0';
}
void
t@@ -1436,17 +1434,17 @@ updatetitle(Client *c)
if (showindicators) {
gettogglestat(c);
- getpagestat(c);
+ getpagestats(c);
if (c->linkhover) {
- t = g_strdup_printf("%s:%s | %s", togglestat, pagestat,
+ t = g_strdup_printf("%s:%s | %s", togglestat, pagestat…
c->linkhover);
} else if (c->progress != 100) {
t = g_strdup_printf("[%i%%] %s:%s | %s", c->progress,
- togglestat, pagestat,
+ togglestat, pagestats,
c->title == NULL ? "" : c->title);
} else {
- t = g_strdup_printf("%s:%s | %s", togglestat, pagestat,
+ t = g_strdup_printf("%s:%s | %s", togglestat, pagestat…
c->title == NULL ? "" : c->title);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.