indicate GnuPG signed messages by displaying an icon in the Attachment column
authorPaul Mangan <paul@claws-mail.org>
Fri, 31 Jan 2003 15:55:56 +0000 (15:55 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 31 Jan 2003 15:55:56 +0000 (15:55 +0000)
ChangeLog.claws
configure.ac
src/procheader.c
src/stock_pixmap.c
src/stock_pixmap.h
src/summaryview.c

index 7f2f74f..dea3d34 100644 (file)
@@ -1,3 +1,12 @@
+2003-01-31 [paul]      0.8.9claws29
+
+       * src/pixmaps/gpg_signed.xpm    ** NEW FILE **
+         src/procheader.c
+         src/stock_pixmap.[ch]
+         src/summaryview.c
+               indicate GnuPG signed messages by displaying an icon
+               in the Attachment column.
+
 2003-01-31 [paul]      0.8.9claws28
 
        * sync with 0.8.9cvs4
index aa26ecc..b604431 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=9
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws28
+EXTRA_VERSION=claws29
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 207d8de..514ff56 100644 (file)
@@ -635,7 +635,11 @@ MsgInfo *procheader_parse_stream(FILE *fp, MsgFlags flags, gboolean full,
                        else if (!strncasecmp(hp, "multipart/encrypted", 19)) {
                                MSG_SET_TMP_FLAGS(msginfo->flags,
                                                  MSG_ENCRYPTED);
-                       }
+                       } 
+                       else if (!strncasecmp(hp, "multipart", 9) &&
+                                  !strncasecmp(hp, "multipart/signed", 16)) {
+                               MSG_SET_TMP_FLAGS(msginfo->flags, MSG_SIGNED);
+                       } 
                        else if (!strncasecmp(hp, "multipart", 9))
                                MSG_SET_TMP_FLAGS(msginfo->flags, MSG_MIME);
                        break;
index afb9756..42429d2 100644 (file)
@@ -90,6 +90,7 @@
 #include "pixmaps/notice_error.xpm"
 #include "pixmaps/notice_note.xpm"
 #include "pixmaps/quicksearch.xpm"
+#include "pixmaps/gpg_signed.xpm"
 
 typedef struct _StockPixmapData        StockPixmapData;
 
@@ -181,6 +182,7 @@ static StockPixmapData pixmaps[] =
        {notice_error_xpm                       , NULL, NULL, "notice_error",  "  "},
        {notice_note_xpm                        , NULL, NULL, "notice_note",  "  "},
        {quicksearch_xpm                        , NULL, NULL, "quicksearch",  "  "},
+       {gpg_signed_xpm                         , NULL, NULL, "gpg_signed", "  "},
        {sylpheed_logo_xpm                      , NULL, NULL, "sylpheed_logo", "  "},
 };
 
index ba4ed18..36bac45 100644 (file)
@@ -99,6 +99,7 @@ typedef enum
        STOCK_PIXMAP_NOTICE_ERROR,              /* small error   */
        STOCK_PIXMAP_NOTICE_NOTE,               /* small message */
        STOCK_PIXMAP_QUICKSEARCH,               /* quicksearch pixmap */
+       STOCK_PIXMAP_GPG_SIGNED,
 
        STOCK_PIXMAP_SYLPHEED_LOGO,             /* last entry */
        
index 96aaa91..98e6339 100644 (file)
@@ -128,6 +128,8 @@ static GdkPixmap *keyxpm;
 static GdkBitmap *keyxpmmask;
 static GdkPixmap *clipkeyxpm;
 static GdkBitmap *clipkeyxpmmask;
+static GdkPixmap *gpgsignedxpm;
+static GdkBitmap *gpgsignedxpmmask;
 
 static void summary_free_msginfo_func  (GtkCTree               *ctree,
                                         GtkCTreeNode           *node,
@@ -741,6 +743,8 @@ void summary_init(SummaryView *summaryview)
                         &clipkeyxpm, &clipkeyxpmmask);
        stock_pixmap_gdk(summaryview->ctree, STOCK_PIXMAP_KEY,
                         &keyxpm, &keyxpmmask);
+       stock_pixmap_gdk(summaryview->ctree, STOCK_PIXMAP_GPG_SIGNED,
+                        &gpgsignedxpm, &gpgsignedxpmmask);
 
        if (!small_style) {
                small_style = gtk_style_copy
@@ -2728,7 +2732,10 @@ static void summary_set_row_marks(SummaryView *summaryview, GtkCTreeNode *row)
                gtk_ctree_node_set_text(ctree, row, col_pos[S_COL_LOCKED], NULL);
        }
 
-       if (MSG_IS_MIME(flags) && MSG_IS_ENCRYPTED(flags)) {
+       if (MSG_IS_SIGNED(flags)) {
+               gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_MIME],
+                                         gpgsignedxpm, gpgsignedxpmmask);
+       } else if (MSG_IS_MIME(flags) && MSG_IS_ENCRYPTED(flags)) {
                gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_MIME],
                                          clipkeyxpm, clipkeyxpmmask);
        } else if (MSG_IS_ENCRYPTED(flags)) {
@@ -5322,6 +5329,7 @@ void summary_reflect_prefs_pixmap_theme(SummaryView *summaryview)
        stock_pixmap_gdk(ctree, STOCK_PIXMAP_IGNORETHREAD, &ignorethreadxpm, &ignorethreadxpmmask);
        stock_pixmap_gdk(ctree, STOCK_PIXMAP_CLIP_KEY, &clipkeyxpm, &clipkeyxpmmask);
        stock_pixmap_gdk(ctree, STOCK_PIXMAP_KEY, &keyxpm, &keyxpmmask);
+       stock_pixmap_gdk(ctree, STOCK_PIXMAP_GPG_SIGNED, &gpgsignedxpm, &gpgsignedxpmmask);
 
        pixmap = stock_pixmap_widget(summaryview->hbox, STOCK_PIXMAP_DIR_OPEN);
        gtk_box_pack_start(GTK_BOX(summaryview->hbox), pixmap, FALSE, FALSE, 4);