exclude current msg from -hide read messages-
authorThorsten Maerz <torte@netztorte.de>
Tue, 8 Oct 2002 20:30:31 +0000 (20:30 +0000)
committerThorsten Maerz <torte@netztorte.de>
Tue, 8 Oct 2002 20:30:31 +0000 (20:30 +0000)
ChangeLog.claws
configure.in
src/summaryview.c

index 4a9ba4c..f6aa9f0 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-08 [thorsten]  0.8.5claws3
+
+       * src/summaryview.c
+               exclude current msg from -hide read messages-
+
 2002-10-08 [colin]     0.8.5claws2
 
        * src/inc.[ch]
index fefea70..e51084c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws2
+EXTRA_VERSION=claws3
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 9ef43fd..27ddb52 100644 (file)
@@ -765,6 +765,10 @@ GtkCTreeNode * summary_find_prev_important_score(SummaryView *summaryview,
                return best_node;
 }
 
+#define CURRENTLY_DISPLAYED(m) \
+( (m->msgnum == displayed_msgnum) \
+  && (!g_strcasecmp(m->folder->name,item->name)) )
+
 gboolean summary_show(SummaryView *summaryview, FolderItem *item)
 {
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
@@ -888,7 +892,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                        
                        if ((MSG_IS_UNREAD(msginfo->flags)
                             || MSG_IS_MARKED(msginfo->flags)
-                            || MSG_IS_LOCKED(msginfo->flags))
+                            || MSG_IS_LOCKED(msginfo->flags)
+                            || CURRENTLY_DISPLAYED(msginfo))
                             && !MSG_IS_IGNORE_THREAD(msginfo->flags))
                            not_killed = g_slist_append(not_killed, msginfo);
                        else
@@ -1025,6 +1030,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
        return TRUE;
 }
 
+#undef CURRENTLY_DISPLAYED
+
 void summary_clear_list(SummaryView *summaryview)
 {
        GtkCList *clist = GTK_CLIST(summaryview->ctree);