From cd8cb17b9ed24ca7e907bf00da44a34883a1f072 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 17 Dec 2011 10:57:35 +0100 Subject: [PATCH] Use icon channel-(in)secure-symbolc if available Fixes: https://bugs.launchpad.net/bugs/905086 --- midori/midori-locationaction.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 698d9e9a..47d2e3d0 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -1670,7 +1670,10 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action, bg_color = "#ef7070"; fg_color = "#000"; #if !HAVE_HILDON - if (gtk_icon_theme_has_icon (icon_theme, "lock-insecure")) + if (gtk_icon_theme_has_icon (icon_theme, "channel-insecure-symbolic")) + gtk_icon_entry_set_icon_from_icon_name (GTK_ICON_ENTRY (entry), + GTK_ICON_ENTRY_SECONDARY, "channel-insecure-symbolic"); + else if (gtk_icon_theme_has_icon (icon_theme, "lock-insecure")) gtk_icon_entry_set_icon_from_icon_name (GTK_ICON_ENTRY (entry), GTK_ICON_ENTRY_SECONDARY, "lock-insecure"); else @@ -1685,7 +1688,10 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action, bg_color = "#d1eeb9"; fg_color = "#000"; #if !HAVE_HILDON - if (gtk_icon_theme_has_icon (icon_theme, "lock-secure")) + if (gtk_icon_theme_has_icon (icon_theme, "channel-secure-symbolic")) + gtk_icon_entry_set_icon_from_icon_name (GTK_ICON_ENTRY (entry), + GTK_ICON_ENTRY_SECONDARY, "channel-secure-symbolic"); + else if (gtk_icon_theme_has_icon (icon_theme, "lock-secure")) gtk_icon_entry_set_icon_from_icon_name (GTK_ICON_ENTRY (entry), GTK_ICON_ENTRY_SECONDARY, "lock-secure"); else -- 2.39.5