speed up of marking messages as read
authorPaul Mangan <paul@claws-mail.org>
Sun, 26 Jan 2003 16:30:48 +0000 (16:30 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 26 Jan 2003 16:30:48 +0000 (16:30 +0000)
AUTHORS
ChangeLog.claws
configure.ac
src/summaryview.c

diff --git a/AUTHORS b/AUTHORS
index d1ee6aa..5ca0d2a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -168,3 +168,4 @@ contributors (beside the above; based on Changelog)
        Mohammed Sameer
        Kim Schulz
        Christian Mertes
+       Jens Rantil
index 8eff534..7252239 100644 (file)
@@ -1,3 +1,9 @@
+2003-01-26 [paul]      0.8.9claws15
+
+       * src/summaryview.c
+               speed up of marking messages as read
+               patch submitted by Jens Rantil <ztyx@users.sourceforge.net>
+
 2003-01-26 [christoph] 0.8.9claws14
 
        * src/Makefile.am
index 3df7658..90d2091 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=9
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws14
+EXTRA_VERSION=claws15
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 27e7d39..6852c7f 100644 (file)
@@ -87,6 +87,7 @@
 #include "matcher_parser.h"
 #include "hooks.h"
 #include "description_window.h"
+#include "folder.h"
 
 #define SUMMARY_COL_MARK_WIDTH         10
 #define SUMMARY_COL_STATUS_WIDTH       13
@@ -2841,10 +2842,12 @@ void summary_mark_as_read(SummaryView *summaryview)
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
        GList *cur;
 
+       folder_item_update_freeze();
        for (cur = GTK_CLIST(ctree)->selection; cur != NULL; cur = cur->next)
                summary_mark_row_as_read(summaryview,
                                         GTK_CTREE_NODE(cur->data));
-
+       folder_item_update_thaw();
+       
        summary_status_show(summaryview);
 }
 
@@ -2855,6 +2858,7 @@ void summary_mark_all_read(SummaryView *summaryview)
        GtkCTreeNode *node;
 
        gtk_clist_freeze(clist);
+       folder_item_update_freeze();
        for (node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list); node != NULL;
             node = gtkut_ctree_node_next(ctree, node))
                summary_mark_row_as_read(summaryview, node);
@@ -2864,6 +2868,7 @@ void summary_mark_all_read(SummaryView *summaryview)
                        summary_set_row_marks(summaryview, node);
        }
        gtk_clist_thaw(clist);
+       folder_item_update_thaw();
 
        summary_status_show(summaryview);
 }
@@ -2901,10 +2906,12 @@ void summary_mark_as_unread(SummaryView *summaryview)
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
        GList *cur;
 
+       folder_item_update_freeze();
        for (cur = GTK_CLIST(ctree)->selection; cur != NULL; cur = cur->next)
                summary_mark_row_as_unread(summaryview,
                                           GTK_CTREE_NODE(cur->data));
-
+       folder_item_update_thaw();
+       
        summary_status_show(summaryview);
 }