summaryrefslogtreecommitdiffstats
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--surf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/surf.c b/surf.c
index f5c7d1e..30464d5 100644
--- a/surf.c
+++ b/surf.c
@@ -1368,7 +1368,12 @@ void
togglestyle(Client *c, const Arg *a)
{
enablestyle = !enablestyle;
- setstyle(c, enablestyle ? getstyle(geturi(c)) : "");
+
+ if (enablestyle)
+ setstyle(c, getstyle(geturi(c)));
+ else
+ webkit_user_content_manager_remove_all_style_sheets(
+ webkit_web_view_get_user_content_manager(c->view));
updatetitle(c);
}
='insertions'>+2 2009-09-07adding indicator bar.Gravatar Enno Boland (tox) 1-11/+46 2009-09-07s/zoompage/zoom/Gravatar Enno Boland (tox) 2-5/+6 2009-09-07typo fixGravatar Enno Boland (tox) 1-1/+1 2009-09-07changes to the event system, make config.h saner, working on cookiesGravatar Enno Boland (tox) 2-96/+63 2009-09-06typofixGravatar Enno Boland (tox) 1-1/+1 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reworked navigate.Gravatar Enno Boland (tox) 2-7/+4 2009-09-06reappling printing; changing some keys.Gravatar Enno Boland (tox) 2-3/+10