aboutsummaryrefslogtreecommitdiff
path: root/src/textview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-31 06:33:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-01-31 06:33:16 +0000
commit7bc271aed38e8f5d5ca4b2e40eaf2bf545e7a719 (patch)
tree7fcf26d41c7eb67cef9220309b3d529271c323b1 /src/textview.c
parent39397cc63092ed3e8bf91e89ea070dfc1a44114e (diff)
ported to gpgme-1.0.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@56 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/textview.c')
-rw-r--r--src/textview.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/textview.c b/src/textview.c
index 81eae79d..f2dc7597 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -97,6 +97,13 @@ static GdkColor good_sig_color = {
(gushort)0
};
+static GdkColor untrusted_sig_color = {
+ (gulong)0,
+ (gushort)0xefff,
+ (gushort)0,
+ (gushort)0
+};
+
static GdkColor nocheck_sig_color = {
(gulong)0,
(gushort)0,
@@ -273,6 +280,9 @@ static void textview_create_tags(GtkTextView *text, TextView *textview)
gtk_text_buffer_create_tag(buffer, "good-signature",
"foreground-gdk", &good_sig_color,
NULL);
+ gtk_text_buffer_create_tag(buffer, "untrusted-signature",
+ "foreground-gdk", &untrusted_sig_color,
+ NULL);
gtk_text_buffer_create_tag(buffer, "bad-signature",
"foreground-gdk", &bad_sig_color,
NULL);
@@ -518,6 +528,8 @@ static void textview_add_part(TextView *textview, MimeInfo *mimeinfo, FILE *fp)
const gchar *color;
if (!strcmp(mimeinfo->sigstatus, _("Good signature")))
color = "good-signature";
+ else if (!strcmp(mimeinfo->sigstatus, _("Valid signature (untrusted key)")))
+ color = "untrusted-signature";
else if (!strcmp(mimeinfo->sigstatus, _("BAD signature")))
color = "bad-signature";
else