pinosaur
/
surf.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Item struct is not used.
[surf.git]
/
surf.c
diff --git
a/surf.c
b/surf.c
index
b36fc4a
..
17f7750
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-52,12
+52,6
@@
typedef struct Client {
gboolean zoomed, fullscreen, isinspecting, sslfailed;
} Client;
gboolean zoomed, fullscreen, isinspecting, sslfailed;
} Client;
-typedef struct {
- char *label;
- void (*func)(Client *c, const Arg *arg);
- const Arg arg;
-} Item;
-
typedef struct {
guint mod;
guint keyval;
typedef struct {
guint mod;
guint keyval;
@@
-84,7
+78,7
@@
static gboolean showxid = FALSE;
static char winid[64];
static gboolean usingproxy = 0;
static char togglestat[5];
static char winid[64];
static gboolean usingproxy = 0;
static char togglestat[5];
-static char pagestat[
2
];
+static char pagestat[
3
];
static void beforerequest(WebKitWebView *w, WebKitWebFrame *f,
WebKitWebResource *r, WebKitNetworkRequest *req,
static void beforerequest(WebKitWebView *w, WebKitWebFrame *f,
WebKitWebResource *r, WebKitNetworkRequest *req,
@@
-1066,12
+1060,15
@@
static void
getpagestat(Client *c) {
const char *uri = geturi(c);
getpagestat(Client *c) {
const char *uri = geturi(c);
- if(strstr(uri, "https://") == uri)
+ if(strstr(uri, "https://") == uri)
{
pagestat[0] = c->sslfailed ? 'U' : 'T';
pagestat[0] = c->sslfailed ? 'U' : 'T';
- else
+ } else {
pagestat[0] = '-';
pagestat[0] = '-';
+ }
pagestat[1] = usingproxy ? 'P' : '-';
pagestat[1] = usingproxy ? 'P' : '-';
+ pagestat[2] = '\0';
+
}
static void
}
static void