Recognize image/x-ico favicons as well
This commit is contained in:
parent
834e69cf64
commit
0b5dcbfe10
1 changed files with 2 additions and 1 deletions
|
@ -979,7 +979,8 @@ midori_web_view_get_icon (MidoriWebView* web_view)
|
||||||
if (info)
|
if (info)
|
||||||
{
|
{
|
||||||
content_type = g_file_info_get_content_type (info);
|
content_type = g_file_info_get_content_type (info);
|
||||||
icon = !strcmp (content_type, "image/x-icon")
|
/* favicon.ico can be image/x-ico or image/x-icon */
|
||||||
|
icon = !strcmp (content_type, "image/x-ico")
|
||||||
? g_file_icon_new (icon_file) : NULL;
|
? g_file_icon_new (icon_file) : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue