Be more specific about what enablestyles parameter does.
The enablestyles configuration variable and parameter flag manages the global application of styles, not just the site-specific styles. Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
2223e9ed22
commit
5333171961
|
@ -30,7 +30,7 @@ static int diskcachebytes = 5 * 1024 * 1024;
|
||||||
static Bool enableplugins = TRUE;
|
static Bool enableplugins = TRUE;
|
||||||
static Bool enablescripts = TRUE;
|
static Bool enablescripts = TRUE;
|
||||||
static Bool enableinspector = TRUE;
|
static Bool enableinspector = TRUE;
|
||||||
static Bool enablestyles = TRUE;
|
static Bool enablestyle = TRUE;
|
||||||
static Bool loadimages = TRUE;
|
static Bool loadimages = TRUE;
|
||||||
static Bool hidebackground = FALSE;
|
static Bool hidebackground = FALSE;
|
||||||
static Bool allowgeolocation = TRUE;
|
static Bool allowgeolocation = TRUE;
|
||||||
|
|
4
surf.1
4
surf.1
|
@ -75,10 +75,10 @@ Disable kiosk mode (disable key strokes and right click)
|
||||||
Enable kiosk mode (disable key strokes and right click)
|
Enable kiosk mode (disable key strokes and right click)
|
||||||
.TP
|
.TP
|
||||||
.B \-m
|
.B \-m
|
||||||
Disable the site-specific styles.
|
Disable application of user style sheets.
|
||||||
.TP
|
.TP
|
||||||
.B \-M
|
.B \-M
|
||||||
Enable the site-specific styles.
|
Enable application of user style sheets.
|
||||||
.TP
|
.TP
|
||||||
.B \-n
|
.B \-n
|
||||||
Disable the Web Inspector (Developer Tools).
|
Disable the Web Inspector (Developer Tools).
|
||||||
|
|
14
surf.c
14
surf.c
|
@ -803,7 +803,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c)
|
||||||
}
|
}
|
||||||
setatom(c, AtomUri, uri);
|
setatom(c, AtomUri, uri);
|
||||||
|
|
||||||
if (enablestyles)
|
if (enablestyle)
|
||||||
setstyle(c, getstyle(uri));
|
setstyle(c, getstyle(uri));
|
||||||
break;
|
break;
|
||||||
case WEBKIT_LOAD_FINISHED:
|
case WEBKIT_LOAD_FINISHED:
|
||||||
|
@ -1021,7 +1021,7 @@ newclient(void)
|
||||||
"default-font-size", defaultfontsize, NULL);
|
"default-font-size", defaultfontsize, NULL);
|
||||||
g_object_set(G_OBJECT(settings),
|
g_object_set(G_OBJECT(settings),
|
||||||
"resizable-text-areas", 1, NULL);
|
"resizable-text-areas", 1, NULL);
|
||||||
if (enablestyles)
|
if (enablestyle)
|
||||||
setstyle(c, getstyle("about:blank"));
|
setstyle(c, getstyle("about:blank"));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1534,8 +1534,8 @@ togglescrollbars(Client *c, const Arg *arg)
|
||||||
void
|
void
|
||||||
togglestyle(Client *c, const Arg *arg)
|
togglestyle(Client *c, const Arg *arg)
|
||||||
{
|
{
|
||||||
enablestyles = !enablestyles;
|
enablestyle = !enablestyle;
|
||||||
setstyle(c, enablestyles ? getstyle(geturi(c)) : "");
|
setstyle(c, enablestyle ? getstyle(geturi(c)) : "");
|
||||||
|
|
||||||
updatetitle(c);
|
updatetitle(c);
|
||||||
}
|
}
|
||||||
|
@ -1566,7 +1566,7 @@ gettogglestat(Client *c)
|
||||||
g_object_get(G_OBJECT(settings), "enable-plugins", &value, NULL);
|
g_object_get(G_OBJECT(settings), "enable-plugins", &value, NULL);
|
||||||
togglestat[p++] = value? 'V': 'v';
|
togglestat[p++] = value? 'V': 'v';
|
||||||
|
|
||||||
togglestat[p++] = enablestyles ? 'M': 'm';
|
togglestat[p++] = enablestyle ? 'M': 'm';
|
||||||
|
|
||||||
togglestat[p] = '\0';
|
togglestat[p] = '\0';
|
||||||
}
|
}
|
||||||
|
@ -1709,10 +1709,10 @@ main(int argc, char *argv[])
|
||||||
kioskmode = 1;
|
kioskmode = 1;
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
enablestyles = 0;
|
enablestyle = 0;
|
||||||
break;
|
break;
|
||||||
case 'M':
|
case 'M':
|
||||||
enablestyles = 1;
|
enablestyle = 1;
|
||||||
break;
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
enableinspector = 0;
|
enableinspector = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user