2006-03-02 [colin] 2.0.0cvs98
authorColin Leroy <colin@colino.net>
Thu, 2 Mar 2006 07:31:03 +0000 (07:31 +0000)
committerColin Leroy <colin@colino.net>
Thu, 2 Mar 2006 07:31:03 +0000 (07:31 +0000)
* src/summaryview.c
Put the spam icon in the status column instead of the
mark one

ChangeLog
PATCHSETS
configure.ac
src/summaryview.c

index 357a9036edee9138178903ed3cb2d6916a3f3b1e..45faa6f27cf54f3d85ad0746998cf6fb722d7712 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-02 [colin]     2.0.0cvs98
+
+       * src/summaryview.c
+               Put the spam icon in the status column instead of the
+               mark one
+
 2006-03-01 [colin]     2.0.0cvs97
 
        * src/plugins/spamassassin/spamassassin.c
index 2a79aa9d7c14a85e4fef5492a90dcb710b0387a7..0b7bd80d910e5fcbd03daadc7d644e50a8920bb5 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.27.2.16 -r 1.27.2.17 src/addr_compl.c;  cvs diff -u -r 1.22.2.7 -r 1.22.2.8 src/addrbook.c;  cvs diff -u -r 1.60.2.48 -r 1.60.2.49 src/addressbook.c;  cvs diff -u -r 1.28.2.14 -r 1.28.2.15 src/addrindex.c;  cvs diff -u -r 1.2.2.11 -r 1.2.2.12 src/folder_item_prefs.c;  cvs diff -u -r 1.8.2.15 -r 1.8.2.16 src/headerview.c;  cvs diff -u -r 1.179.2.95 -r 1.179.2.96 src/imap.c;  cvs diff -u -r 1.149.2.44 -r 1.149.2.45 src/inc.c;  cvs diff -u -r 1.12.2.8 -r 1.12.2.9 src/ldif.c;  cvs diff -u -r 1.274.2.101 -r 1.274.2.102 src/mainwindow.c;  cvs diff -u -r 1.79.2.23 -r 1.79.2.24 src/mh.c;  cvs diff -u -r 1.16.2.29 -r 1.16.2.30 src/msgcache.c;  cvs diff -u -r 1.103.2.42 -r 1.103.2.43 src/prefs_common.h;  cvs diff -u -r 1.1.2.14 -r 1.1.2.15 src/prefs_msg_colors.c;  cvs diff -u -r 1.47.2.26 -r 1.47.2.27 src/procheader.c;  cvs diff -u -r 1.11.2.5 -r 1.11.2.6 src/procheader.h;  cvs diff -u -r 1.49.2.73 -r 1.49.2.74 src/procmime.c;  cvs diff -u -r 1.150.2.55 -r 1.150.2.56 src/procmsg.c;  cvs diff -u -r 1.60.2.25 -r 1.60.2.26 src/procmsg.h;  cvs diff -u -r 1.1.4.3 -r 1.1.4.4 src/send_message.h;  cvs diff -u -r 1.1.16.2 -r 1.1.16.3 src/simple-gettext.c;  cvs diff -u -r 1.395.2.177 -r 1.395.2.178 src/summaryview.c;  cvs diff -u -r 1.68.2.17 -r 1.68.2.18 src/summaryview.h;  cvs diff -u -r 1.16.2.3 -r 1.16.2.4 src/syldap.c;  cvs diff -u -r 1.96.2.97 -r 1.96.2.98 src/textview.c;  cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/undo.c;  cvs diff -u -r 1.4.2.5 -r 1.4.2.6 src/common/ssl_certificate.c;  cvs diff -u -r 1.36.2.56 -r 1.36.2.57 src/common/utils.c;  cvs diff -u -r 1.1.4.7 -r 1.1.4.8 src/gtk/colorsel.c;  cvs diff -u -r 1.1.4.13 -r 1.1.4.14 src/gtk/gtksctree.c;  cvs diff -u -r 1.1.4.5 -r 1.1.4.6 src/gtk/gtkshruler.c;  cvs diff -u -r 1.14.2.33 -r 1.14.2.34 src/plugins/trayicon/trayicon.c;  ) > 2.0.0cvs95.patchset
 ( cvs diff -u -r 1.149.2.45 -r 1.149.2.46 src/inc.c;  ) > 2.0.0cvs96.patchset
 ( cvs diff -u -r 1.18.2.28 -r 1.18.2.29 src/plugins/spamassassin/spamassassin.c;  ) > 2.0.0cvs97.patchset
+( cvs diff -u -r 1.395.2.178 -r 1.395.2.179 src/summaryview.c;  ) > 2.0.0cvs98.patchset
index 9ec805f02de991f154186dc9527cfbcfc9b0cadb..560ec2cce58d21cbc2f4b6f1ec029549531b358b 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=97
+EXTRA_VERSION=98
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 0c3108f30acefd2fdc2ba7bf68b82d98f35071a0..4744037f020b0dd16eb780204563b881d1e6eb4b 100644 (file)
@@ -2887,6 +2887,9 @@ static void summary_set_row_marks(SummaryView *summaryview, GtkCTreeNode *row)
        if (MSG_IS_IGNORE_THREAD(flags)) {
                gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_STATUS],
                                          ignorethreadxpm, ignorethreadxpmmask);
+       } else if (MSG_IS_SPAM(flags)) {
+               gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_STATUS],
+                                         spamxpm, spamxpmmask);
        } else if (MSG_IS_NEW(flags)) {
                gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_STATUS],
                                          newxpm, newxpmmask);
@@ -2922,9 +2925,6 @@ static void summary_set_row_marks(SummaryView *summaryview, GtkCTreeNode *row)
                }
                        gtk_ctree_node_set_foreground
                                (ctree, row, &summaryview->color_dim);
-       } else if (MSG_IS_SPAM(flags)) {
-               gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_MARK],
-                                         spamxpm, spamxpmmask);
        } else if (MSG_IS_MARKED(flags)) {
                gtk_ctree_node_set_pixmap(ctree, row, col_pos[S_COL_MARK],
                                          markxpm, markxpmmask);
@@ -5024,11 +5024,6 @@ static void summary_selected(GtkCTree *ctree, GtkCTreeNode *row,
                    !MSG_IS_COPY(msginfo->flags)) {
                        if (MSG_IS_MARKED(msginfo->flags)) {
                                summary_unmark_row(summaryview, row);
-                       } else if (MSG_IS_SPAM(msginfo->flags)) {
-                               if (procmsg_spam_learner_learn(msginfo, NULL, FALSE) == 0)
-                                       summary_msginfo_unset_flags(msginfo, MSG_SPAM, 0);
-                               else
-                                       log_error(_("An error happened while learning.\n"));
                        } else {
                                summary_mark_row(summaryview, row);
                        }
@@ -5038,6 +5033,11 @@ static void summary_selected(GtkCTree *ctree, GtkCTreeNode *row,
                if (MSG_IS_UNREAD(msginfo->flags)) {
                        summary_mark_row_as_read(summaryview, row);
                        summary_status_show(summaryview);
+               } else if (MSG_IS_SPAM(msginfo->flags)) {
+                               if (procmsg_spam_learner_learn(msginfo, NULL, FALSE) == 0)
+                                       summary_msginfo_unset_flags(msginfo, MSG_SPAM, 0);
+                               else
+                                       log_error(_("An error happened while learning.\n"));
                } else if (!MSG_IS_REPLIED(msginfo->flags) &&
                         !MSG_IS_FORWARDED(msginfo->flags)) {
                        marked_unread = TRUE;