pinosaur
/
surf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt page statistics
[surf.git]
/
surf.c
diff --git
a/surf.c
b/surf.c
index
52d9cdd
..
81bd03e
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-108,7
+108,7
@@
static Window embed = 0;
static gboolean showxid = FALSE;
static char winid[64];
static char togglestat[9];
static gboolean showxid = FALSE;
static char winid[64];
static char togglestat[9];
-static char pagestat
[3
];
+static char pagestat
s[2
];
static GTlsDatabase *tlsdb;
static int cookiepolicy;
static char *stylefile = NULL;
static GTlsDatabase *tlsdb;
static int cookiepolicy;
static char *stylefile = NULL;
@@
-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);
WebKitPermissionRequest *r, Client *c);
static const char *getatom(Client *c, int a);
static void gettogglestat(Client *c);
-static void getpagestat(Client *c);
+static void getpagestat
s
(Client *c);
static char *geturi(Client *c);
static const gchar *getstyle(const char *uri);
static void setstyle(Client *c, const char *stylefile);
static char *geturi(Client *c);
static const gchar *getstyle(const char *uri);
static void setstyle(Client *c, const char *stylefile);
@@
-1420,13
+1420,11
@@
gettogglestat(Client *c)
}
void
}
void
-getpagestat(Client *c)
+getpagestat
s
(Client *c)
{
{
- const char *uri = geturi(c);
-
pagestats[0] = c->tlsflags > G_TLS_CERTIFICATE_VALIDATE_ALL ? '-' :
c->tlsflags > 0 ? 'U' : 'T';
pagestats[0] = c->tlsflags > G_TLS_CERTIFICATE_VALIDATE_ALL ? '-' :
c->tlsflags > 0 ? 'U' : 'T';
- pagestat[1] = '\0';
+ pagestat
s
[1] = '\0';
}
void
}
void
@@
-1436,17
+1434,17
@@
updatetitle(Client *c)
if (showindicators) {
gettogglestat(c);
if (showindicators) {
gettogglestat(c);
- getpagestat(c);
+ getpagestat
s
(c);
if (c->linkhover) {
if (c->linkhover) {
- t = g_strdup_printf("%s:%s | %s", togglestat, pagestat,
+ t = g_strdup_printf("%s:%s | %s", togglestat, pagestat
s
,
c->linkhover);
} else if (c->progress != 100) {
t = g_strdup_printf("[%i%%] %s:%s | %s", c->progress,
c->linkhover);
} else if (c->progress != 100) {
t = g_strdup_printf("[%i%%] %s:%s | %s", c->progress,
- togglestat, pagestat,
+ togglestat, pagestat
s
,
c->title == NULL ? "" : c->title);
} else {
c->title == NULL ? "" : c->title);
} else {
- t = g_strdup_printf("%s:%s | %s", togglestat, pagestat,
+ t = g_strdup_printf("%s:%s | %s", togglestat, pagestat
s
,
c->title == NULL ? "" : c->title);
}
c->title == NULL ? "" : c->title);
}