r13509 tlsa - /trunk/netsurf/riscos/gui.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Mar 6 18:34:02 GMT 2012


Author: tlsa
Date: Tue Mar  6 12:34:02 2012
New Revision: 13509

URL: http://source.netsurf-browser.org?rev=13509&view=rev
Log:
Set User CSS file in Choices.WWW.NetSurf.

Modified:
    trunk/netsurf/riscos/gui.c

Modified: trunk/netsurf/riscos/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/riscos/gui.c?rev=13509&r1=13508&r2=13509&view=diff
==============================================================================
--- trunk/netsurf/riscos/gui.c (original)
+++ trunk/netsurf/riscos/gui.c Tue Mar  6 12:34:02 2012
@@ -278,14 +278,23 @@
 	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);
 




More information about the netsurf-commits mailing list