sync with 0.8.5cvs24
authorPaul Mangan <paul@claws-mail.org>
Wed, 13 Nov 2002 08:59:53 +0000 (08:59 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 13 Nov 2002 08:59:53 +0000 (08:59 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/textview.c

index e5df2e4..1252805 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-13
+
+       * src/textview.c: textview_add_part(): indicate signature status
+         using different colors.
+
 2002-11-12
 
        * src/folder.c: folder_write_list_recursive(): escape
index 7730af8..2c4868e 100644 (file)
@@ -1,3 +1,11 @@
+2002-11-13 [paul]      0.8.5claws138
+
+       * sync with 0.8.5cvs24
+               see ChangeLog 2002-11-13
+               
+       * po/pt_BR.po
+               updated by Fabio Jr. Beneditto
+
 2002-11-13 [colin]     0.8.5claws137
        
        * src/msgcache.c
index 879e32f..cadb3dc 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-13
+
+       * src/textview.c: textview_add_part(): ½ð̾¤Î¾õÂÖ¤ò°Û¤Ê¤ë¿§¤Çɽ¼¨¡£
+
 2002-11-12
 
        * src/folder.c: folder_write_list_recursive(): To/Cc/Bcc/Reply-To
index 257e904..933ce47 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws137
+EXTRA_VERSION=claws138
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 309633e..1a16f09 100644 (file)
@@ -98,6 +98,29 @@ static GdkColor error_color = {
 };
 #endif
 
+#if USE_GPGME
+static GdkColor good_sig_color = {
+       (gulong)0,
+       (gushort)0,
+       (gushort)0xbfff,
+       (gushort)0
+};
+
+static GdkColor nocheck_sig_color = {
+       (gulong)0,
+       (gushort)0,
+       (gushort)0,
+       (gushort)0xcfff
+};
+
+static GdkColor bad_sig_color = {
+       (gulong)0,
+       (gushort)0xefff,
+       (gushort)0,
+       (gushort)0
+};
+#endif
+
 static GdkFont *text_sb_font;
 static GdkFont *text_mb_font;
 static gint text_sb_font_orig_ascent;
@@ -506,6 +529,15 @@ static void textview_add_part(TextView *textview, MimeInfo *mimeinfo, FILE *fp)
                textview->msgfont = (GdkFont *)oldfont;
                oldfont = NULL;
                g_free(tmp);
+       } else if (mimeinfo->sigstatus) {
+               GdkColor *color;
+               if (!strcmp(mimeinfo->sigstatus, _("Good signature")))
+                       color = &good_sig_color;
+               else if (!strcmp(mimeinfo->sigstatus, _("BAD signature")))
+                       color = &bad_sig_color;
+               else
+                       color = &nocheck_sig_color; 
+               gtk_stext_insert(text, NULL, color, NULL, buf, -1);
        } else
 #endif
        if (mimeinfo->mime_type != MIME_TEXT &&