mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Set User CSS file in Choices.WWW.NetSurf.
svn path=/trunk/netsurf/; revision=13509
This commit is contained in:
parent
e8b0c03cdb
commit
cf86788d3e
17
riscos/gui.c
17
riscos/gui.c
@ -278,15 +278,24 @@ nsurl *gui_get_resource_url(const char *path)
|
||||
nsurl *url = NULL;
|
||||
|
||||
/* Map paths first */
|
||||
if (strcmp(path, "adblock.css") == 0)
|
||||
if (strcmp(path, "adblock.css") == 0) {
|
||||
path = "AdBlock";
|
||||
else if (strcmp(path, "default.css") == 0)
|
||||
|
||||
} else if (strcmp(path, "default.css") == 0) {
|
||||
path = "CSS";
|
||||
else if (strcmp(path, "quirks.css") == 0)
|
||||
|
||||
} else if (strcmp(path, "quirks.css") == 0) {
|
||||
path = "Quirks";
|
||||
else if (strcmp(path, "favicon.ico") == 0)
|
||||
|
||||
} else if (strcmp(path, "favicon.ico") == 0) {
|
||||
path = "Icons/content.png";
|
||||
|
||||
} else if (strcmp(path, "user.css") == 0) {
|
||||
/* Special case; this file comes from Choices: */
|
||||
nsurl_create("file:///Choices:WWW/NetSurf/User", &url);
|
||||
return url;
|
||||
}
|
||||
|
||||
path_len = strlen(path);
|
||||
|
||||
/* Find max URL length */
|
||||
|
Loading…
Reference in New Issue
Block a user