summaryrefslogtreecommitdiff
path: root/lib/ephy-security-levels.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2014-07-15 11:43:47 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2014-08-12 21:31:08 -0500
commit7c5686d037142d5f834a8ee0a40620a521374102 (patch)
treef148cf10618f3978cc442f0bca2487053a778f63 /lib/ephy-security-levels.c
parent6b59dd4a9663a5c58b752e9bdcf00b1ac5db86e3 (diff)
downloadepiphany-7c5686d037142d5f834a8ee0a40620a521374102.tar.gz
Display security status in a popover
Instead of bringing up the certificate details dialog when clicking on the lock icon in the address bar, instead bring up a popover that displays information about the security status of this site, including a button to open the certificate dialog. https://bugzilla.gnome.org/show_bug.cgi?id=666808
Diffstat (limited to 'lib/ephy-security-levels.c')
-rw-r--r--lib/ephy-security-levels.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/ephy-security-levels.c b/lib/ephy-security-levels.c
index 1ea9b0e33..860780cd2 100644
--- a/lib/ephy-security-levels.c
+++ b/lib/ephy-security-levels.c
@@ -32,24 +32,24 @@
const char *
ephy_security_level_to_icon_name (EphySecurityLevel level)
{
- const char *result;
+ const char *result;
- switch (level) {
- case EPHY_SECURITY_LEVEL_NO_SECURITY:
- result = NULL;
- break;
- case EPHY_SECURITY_LEVEL_BROKEN_SECURITY:
- result = "channel-insecure-symbolic";
- break;
- case EPHY_SECURITY_LEVEL_MIXED_CONTENT:
- result = "dialog-warning-symbolic";
- break;
- case EPHY_SECURITY_LEVEL_STRONG_SECURITY:
- result = "channel-secure-symbolic";
- break;
- default:
- g_assert_not_reached ();
- }
+ switch (level) {
+ case EPHY_SECURITY_LEVEL_NO_SECURITY:
+ result = NULL;
+ break;
+ case EPHY_SECURITY_LEVEL_BROKEN_SECURITY:
+ result = "channel-insecure-symbolic";
+ break;
+ case EPHY_SECURITY_LEVEL_MIXED_CONTENT:
+ result = "dialog-warning-symbolic";
+ break;
+ case EPHY_SECURITY_LEVEL_STRONG_SECURITY:
+ result = "channel-secure-symbolic";
+ break;
+ default:
+ g_assert_not_reached ();
+ }
- return result;
+ return result;
}