From 657cbbb60eda4a796d48e0e071e9e9a5cb3f3520 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 17 Jul 2008 10:12:34 +0200 Subject: [PATCH] Fav favicon mime comparison again --- midori/midori-webview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index aa0721c4..2748efc6 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -938,8 +938,8 @@ midori_web_view_get_icon (MidoriWebView* web_view) if (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-ico") + icon = (!strcmp (content_type, "image/x-icon") + || !strcmp (content_type, "image/x-ico")) ? g_file_icon_new (icon_file) : NULL; }