2010-05-26 [holger] 3.7.6cvs9
authorHolger Berndt <hb@claws-mail.org>
Wed, 26 May 2010 17:30:31 +0000 (17:30 +0000)
committerHolger Berndt <hb@claws-mail.org>
Wed, 26 May 2010 17:30:31 +0000 (17:30 +0000)
* src/summaryview.c
* src/summaryview.h
Add function to select rows given a list of messages,
complementary to summary_get_selected_msg_list()

ChangeLog
PATCHSETS
configure.ac
src/summaryview.c
src/summaryview.h

index 4a5f1d4477d5f0d593bcf421fb9af9b35adfe36c..6b36ca4b23096061cbdd337a10a1164aaee6eedc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-26 [holger]    3.7.6cvs9
+
+       * src/summaryview.c
+       * src/summaryview.h
+               Add function to select rows given a list of messages,
+               complementary to summary_get_selected_msg_list()
+
 2010-05-22 [mir]       3.7.6cvs8
 
        * src/ldapctrl.c
index 09928633cb5f1f1d35aca6b0cdda078d67b9e24f..ccbdb4cda68a9a9ef217040bc30e4424aa1d9374 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.550 -r 1.382.2.551 src/compose.c;  ) > 3.7.6cvs6.patchset
 ( cvs diff -u -r 1.1.2.53 -r 1.1.2.54 manual/advanced.xml;  cvs diff -u -r 1.382.2.551 -r 1.382.2.552 src/compose.c;  cvs diff -u -r 1.204.2.196 -r 1.204.2.197 src/prefs_common.c;  cvs diff -u -r 1.103.2.129 -r 1.103.2.130 src/prefs_common.h;  ) > 3.7.6cvs7.patchset
 ( cvs diff -u -r 1.2.2.20 -r 1.2.2.21 src/ldapctrl.c;  ) > 3.7.6cvs8.patchset
+( cvs diff -u -r 1.395.2.419 -r 1.395.2.420 src/summaryview.c;  cvs diff -u -r 1.68.2.55 -r 1.68.2.56 src/summaryview.h;  ) > 3.7.6cvs9.patchset
index 21f7c13742736837f88aaa075348998ebb0dc7e5..6ef8b7c019c8ef8c14496f70b982274716662375 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=8
+EXTRA_VERSION=9
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 0f98e62384103d6f3a1ebee7203ff40d2b3c5ffe..a6edba4493fe0a7d76555947dca2881d479e5aa1 100644 (file)
@@ -2056,6 +2056,30 @@ void summary_select_by_msgnum(SummaryView *summaryview, guint msgnum)
        summary_select_node(summaryview, node, FALSE, TRUE);
 }
 
+void summary_select_by_msg_list(SummaryView    *summaryview, GSList *msginfos)
+{
+       GtkCMCTree *ctree;
+       GSList *msgnum_list, *walk;
+       gboolean froze = FALSE;
+
+       ctree = GTK_CMCTREE(summaryview->ctree);
+
+       msgnum_list = NULL;
+       for(walk = msginfos; walk; walk = walk->next) {
+               MsgInfo *msginfo;
+               msginfo = walk->data;
+               msgnum_list = g_slist_prepend(msgnum_list, GUINT_TO_POINTER(msginfo->msgnum));
+       }
+       START_LONG_OPERATION(summaryview, FALSE);
+       for(walk = msgnum_list; walk; walk = walk->next) {
+               GtkCMCTreeNode *node;
+               node = summary_find_msg_by_msgnum(summaryview, GPOINTER_TO_UINT(walk->data));
+               gtk_cmctree_select(ctree, node);
+       }
+       END_LONG_OPERATION(summaryview);
+       g_slist_free(msgnum_list);
+}
+
 typedef struct _PostponedSelectData
 {
        GtkCMCTree *ctree;
index f84f93db0ff17892559584f4b37272a6e62be457..405d3980d3ad1de2564a9850199c4244175a61c2 100644 (file)
@@ -208,6 +208,7 @@ void summary_select_last_read     (SummaryView              *summaryview);
 void summary_select_parent        (SummaryView         *summaryview);
 void summary_select_by_msgnum    (SummaryView          *summaryview,
                                   guint                 msgnum);
+void summary_select_by_msg_list   (SummaryView         *summaryview, GSList *msginfos);
 guint summary_get_current_msgnum  (SummaryView         *summaryview);
 void summary_select_node         (SummaryView          *summaryview,
                                   GtkCMCTreeNode               *node,