Fav favicon mime comparison again

This commit is contained in:
Christian Dywan 2008-07-17 10:12:34 +02:00
parent 4ac54eec03
commit 657cbbb60e

View file

@ -938,8 +938,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);
/* favicon.ico can be image/x-ico or image/x-icon */ icon = (!strcmp (content_type, "image/x-icon")
icon = !strcmp (content_type, "image/x-ico") || !strcmp (content_type, "image/x-ico"))
? g_file_icon_new (icon_file) : NULL; ? g_file_icon_new (icon_file) : NULL;
} }