use resource:favicon.ico instead of resource:favicon.png

svn path=/trunk/netsurf/; revision=12982
This commit is contained in:
Vincent Sanders 2011-10-07 21:03:45 +00:00
parent 8a293636fb
commit 4c829ae481
3 changed files with 6 additions and 2 deletions

View File

@ -78,7 +78,7 @@ static const char *fetch_resource_paths[] = {
"quirks.css",
"credits.html",
"licence.html",
"favicon.png",
"favicon.ico",
"netsurf.png"
};
static struct fetch_resource_map_entry {

View File

@ -997,7 +997,7 @@ static void browser_window_update_favicon(hlcache_handle *c,
/* no favicon via link, try for the default location */
error = nsurl_join(nsurl, "/favicon.ico", &nsurl);
} else {
error = nsurl_create("resource:favicon.png", &nsurl);
error = nsurl_create("resource:favicon.ico", &nsurl);
}
if (error != NSERROR_OK) {
LOG(("Unable to create default location url"));

View File

@ -327,6 +327,10 @@ nsurl *gui_get_resource_url(const char *path)
if (strcmp(path, "default.css") == 0)
path = "gtkdefault.css";
/* favicon.ico -> favicon.png */
if (strcmp(path, "favicon.ico") == 0)
path = "favicon.png";
raw = path_to_url(filepath_sfind(respaths, buf, path));
if (raw != NULL) {
nsurl_create(raw, &url);