* src/summaryview.c
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 13 Nov 2002 13:16:20 +0000 (13:16 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 13 Nov 2002 13:16:20 +0000 (13:16 +0000)
        moved setting of important score to
        summary_set_prefs_from_folderitem

ChangeLog.claws
config/.cvsignore
configure.in
src/folder.c
src/summaryview.c

index 044ac8369169448ba96a90bfe8f88ddb39048b48..2796685c5323016858dcdf055ed155482a771d1e 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-13 [christoph] 0.8.5claws140
+
+       * src/summaryview.c
+               moved setting of important score to
+               summary_set_prefs_from_folderitem
+
 2002-11-13 [colin]     0.8.5claws139
 
        * src/matcher_parser_parse.y
index 95ead33240e65b884c8e9ce3f2052722a5726c5b..55d0c0d032cd023c0a3a48625209bf8081ae7252 100644 (file)
@@ -1,3 +1,4 @@
+depcomp
 config.guess
 config.sub
 install-sh
index d24a0b5417d7410c39a2efe82618f6e7b0a1ff5d..2cd492e4b4e59152606b890e0421acb74c35bca4 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws139
+EXTRA_VERSION=claws140
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 7ae09d1aa9ccdf4e20bef1283e2a6df833014a02..22e58ca27acd97b356bdcd6ac84ecaa26f31440b 100644 (file)
@@ -2682,6 +2682,9 @@ void folder_item_apply_processing(FolderItem *item)
        g_slist_free(mlist);
 }
 
+/*
+ *  Callback handling for FolderItem content changes
+ */
 GSList *folder_item_update_callbacks_list = NULL;
 gint   folder_item_update_callbacks_nextid = 0;
 
@@ -2746,12 +2749,10 @@ void folder_update_item(FolderItem *item, gboolean contentchange)
        folder_item_update_callback_execute(item, contentchange);
 }
 
-static void folder_update_item_func(FolderItem *item, gpointer data)
+static void folder_update_item_func(FolderItem *item, gpointer contentchange)
 {
-       gboolean contentchange = GPOINTER_TO_INT(data);
-       
        if (item->need_update) {
-               folder_item_update_callback_execute(item, contentchange);
+               folder_item_update_callback_execute(item, GPOINTER_TO_INT(contentchange));
                item->need_update = FALSE;
        }
 }
index 9b645528976ee71dedfb96c92ab63133a8ca7d40..f5fbb8ae2e3fafcdeee55e27e7cfce66f9119c42 100644 (file)
@@ -2107,14 +2107,6 @@ static void summary_set_ctree_from_list(SummaryView *summaryview,
                msginfo->threadscore = msginfo->score;
        }
 
-       if (global_scoring || summaryview->folder_item->prefs->scoring) {
-               summaryview->important_score = prefs_common.important_score;
-               if (summaryview->folder_item->prefs->important_score >
-                   summaryview->important_score)
-                       summaryview->important_score =
-                               summaryview->folder_item->prefs->important_score;
-       }
-
        if (summaryview->threaded) {
                GNode *root, *gnode;
 
@@ -3871,9 +3863,6 @@ static void summary_filter_func(GtkCTree *ctree, GtkCTreeNode *node,
                                gpointer data)
 {
        MsgInfo *msginfo = GTKUT_CTREE_NODE_GET_ROW_DATA(node);
-       SummaryView *summaryview = data;
-       gchar *file;
-       FolderItem *dest;
 
        filter_message_by_msginfo(global_processing, msginfo);
 }
@@ -5301,6 +5290,15 @@ void summary_set_prefs_from_folderitem(SummaryView *summaryview, FolderItem *ite
 
        /* Threading */
        summaryview->threaded = item->threaded;
+
+       /* Scoring */
+       if (global_scoring || summaryview->folder_item->prefs->scoring) {
+               summaryview->important_score = prefs_common.important_score;
+               if (summaryview->folder_item->prefs->important_score >
+                   summaryview->important_score)
+                       summaryview->important_score =
+                               summaryview->folder_item->prefs->important_score;
+       }
 }
 
 void summary_save_prefs_to_folderitem(SummaryView *summaryview, FolderItem *item)