diff options
author | Quentin Rameau <quinq+hackers@fifth.space> | 2015-11-03 16:50:21 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-11-03 19:45:50 +0100 |
commit | 5333171961fc192fbc4d493c940566b1b3d4b3e5 (patch) | |
tree | fbf19886e75d23559ff8e10eeec7bcfe97403990 /surf.c | |
parent | 2223e9ed2264cf1203865b7a0548e0724c89e527 (diff) | |
download | surf-5333171961fc192fbc4d493c940566b1b3d4b3e5.tar.gz surf-5333171961fc192fbc4d493c940566b1b3d4b3e5.tar.bz2 surf-5333171961fc192fbc4d493c940566b1b3d4b3e5.zip |
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>
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -803,7 +803,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) } setatom(c, AtomUri, uri); - if (enablestyles) + if (enablestyle) setstyle(c, getstyle(uri)); break; case WEBKIT_LOAD_FINISHED: @@ -1021,7 +1021,7 @@ newclient(void) "default-font-size", defaultfontsize, NULL); g_object_set(G_OBJECT(settings), "resizable-text-areas", 1, NULL); - if (enablestyles) + if (enablestyle) setstyle(c, getstyle("about:blank")); /* @@ -1534,8 +1534,8 @@ togglescrollbars(Client *c, const Arg *arg) void togglestyle(Client *c, const Arg *arg) { - enablestyles = !enablestyles; - setstyle(c, enablestyles ? getstyle(geturi(c)) : ""); + enablestyle = !enablestyle; + setstyle(c, enablestyle ? getstyle(geturi(c)) : ""); updatetitle(c); } @@ -1566,7 +1566,7 @@ gettogglestat(Client *c) g_object_get(G_OBJECT(settings), "enable-plugins", &value, NULL); togglestat[p++] = value? 'V': 'v'; - togglestat[p++] = enablestyles ? 'M': 'm'; + togglestat[p++] = enablestyle ? 'M': 'm'; togglestat[p] = '\0'; } @@ -1709,10 +1709,10 @@ main(int argc, char *argv[]) kioskmode = 1; break; case 'm': - enablestyles = 0; + enablestyle = 0; break; case 'M': - enablestyles = 1; + enablestyle = 1; break; case 'n': enableinspector = 0; |