[seahorse] Gray out displayed non-trusted keys.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Subject: [seahorse] Gray out displayed non-trusted keys.
- Date: Fri, 10 Jul 2009 21:27:44 +0000 (UTC)
commit e92778463984f47fa913ebe954ed4215f7aa6a4e
Author: Stef Walter <stef memberwebs com>
Date: Fri Jul 10 21:10:27 2009 +0000
Gray out displayed non-trusted keys.
Gray out PGP keys that are not trusted in the main key display
and other places where they're rendered as markup.
pgp/seahorse-pgp-uid.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/pgp/seahorse-pgp-uid.c b/pgp/seahorse-pgp-uid.c
index 5d237f4..6752f73 100644
--- a/pgp/seahorse-pgp-uid.c
+++ b/pgp/seahorse-pgp-uid.c
@@ -515,14 +515,21 @@ seahorse_pgp_uid_calc_markup (const gchar *name, const gchar *email,
{
const gchar *format;
gboolean strike = FALSE;
+ gboolean grayed = FALSE;
g_return_val_if_fail (name, NULL);
if (flags & SEAHORSE_FLAG_EXPIRED || flags & SEAHORSE_FLAG_REVOKED ||
flags & SEAHORSE_FLAG_DISABLED)
strike = TRUE;
+ if (!(flags & SEAHORSE_FLAG_TRUSTED))
+ grayed = TRUE;
- if (strike)
+ if (strike && grayed)
+ format = "<span strikethrough='true' foreground='#555555'>%s<span size='small' rise='0'>%s%s%s%s%s</span></span>";
+ else if (grayed)
+ format = "<span foreground='#555555'>%s<span size='small' rise='0'>%s%s%s%s%s</span></span>";
+ else if (strike)
format = "<span strikethrough='true'>%s<span foreground='#555555' size='small' rise='0'>%s%s%s%s%s</span></span>";
else
format = "%s<span foreground='#555555' size='small' rise='0'>%s%s%s%s%s</span>";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]