summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-03-06 18:34:02 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2012-03-06 18:34:02 +0000
commitcf86788d3e7b6069b46090da7eaad143892c80d5 (patch)
treedf9a2447cf773ff4168430d9061892f2b8b45e38 /riscos/gui.c
parente8b0c03cdb6f642275c4c1bc650ad4c37732d714 (diff)
downloadnetsurf-cf86788d3e7b6069b46090da7eaad143892c80d5.tar.gz
netsurf-cf86788d3e7b6069b46090da7eaad143892c80d5.tar.bz2
Set User CSS file in Choices.WWW.NetSurf.
svn path=/trunk/netsurf/; revision=13509
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 5b8a3ec2b..f65d89f85 100644
--- a/riscos/gui.c
+++ b/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 */