* src/folderview.c
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 25 Jul 2002 12:21:11 +0000 (12:21 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 25 Jul 2002 12:21:11 +0000 (12:21 +0000)
* src/mainwindow.c
* src/prefs_folder_item.c
* src/summaryview.[ch]
        remove no longer required parameter update_cache from
        summary_show

ChangeLog.claws
configure.in
src/folderview.c
src/mainwindow.c
src/prefs_folder_item.c
src/summaryview.c
src/summaryview.h

index ac07683..0c4663a 100644 (file)
@@ -1,3 +1,12 @@
+2002-07-25 [christoph] 0.8.0claws10
+
+       * src/folderview.c
+       * src/mainwindow.c
+       * src/prefs_folder_item.c
+       * src/summaryview.[ch]
+               remove no longer required parameter update_cache from
+               summary_show
+
 2002-07-25 [paul]      0.8.0claws9
 
        * sync with 0.8.1
index 9ae1375..e6c9335 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws9
+EXTRA_VERSION=claws10
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 3198f0c..4ab2a4b 100644 (file)
@@ -1203,8 +1203,7 @@ void folderview_update_item(FolderItem *item, gboolean update_summary)
                if (node) {
                        folderview_update_node(folderview, node);
                        if (update_summary && folderview->opened == node)
-                               summary_show(folderview->summaryview,
-                                            item, FALSE);
+                               summary_show(folderview->summaryview, item);
                }
        }
 }
@@ -1615,7 +1614,7 @@ static void folderview_selected(GtkCTree *ctree, GtkCTreeNode *row,
                olditem = gtk_ctree_node_get_row_data(ctree, folderview->opened);
                folder_item_write_cache(olditem);
        }
-       
+
        /* CLAWS: set compose button type: news folder items 
         * always have a news folder as parent */
        if (item->folder) 
@@ -1663,7 +1662,7 @@ static void folderview_selected(GtkCTree *ctree, GtkCTreeNode *row,
        }
                
        /* Show messages */
-       opened = summary_show(folderview->summaryview, item, FALSE);
+       opened = summary_show(folderview->summaryview, item);
 
        folder_clean_cache_memory();
 
@@ -1765,7 +1764,7 @@ static void folderview_update_tree_cb(FolderView *folderview, guint action,
 
        if (!folderview->selected) return;
 
-       summary_show(folderview->summaryview, NULL, FALSE);
+       summary_show(folderview->summaryview, NULL);
 
        item = gtk_ctree_node_get_row_data(ctree, folderview->selected);
        g_return_if_fail(item != NULL);
@@ -2030,7 +2029,7 @@ static void folderview_rename_mbox_folder_cb(FolderView *folderview,
        if (folderview->opened == folderview->selected) {
                if (!GTK_CTREE_ROW(folderview->opened)->children)
                        gtk_ctree_expand(ctree, folderview->opened);
-               summary_show(folderview->summaryview, item, FALSE);
+               summary_show(folderview->summaryview, item);
        }
 
        gtk_clist_thaw(GTK_CLIST(ctree));
@@ -2073,8 +2072,7 @@ static void folderview_delete_folder_cb(FolderView *folderview, guint action,
                alertpanel_error(_("Can't remove the folder `%s'."), name);
                if (folderview->opened == folderview->selected)
                        summary_show(folderview->summaryview,
-                                    folderview->summaryview->folder_item,
-                                    FALSE);
+                                    folderview->summaryview->folder_item);
                g_free(old_id);
                return;
        }
index e53c729..f9746dc 100644 (file)
@@ -2556,7 +2556,7 @@ static void add_mbox_cb(MainWindow *mainwin, guint action,
 static void update_folderview_cb(MainWindow *mainwin, guint action,
                                 GtkWidget *widget)
 {
-       summary_show(mainwin->summaryview, NULL, FALSE);
+       summary_show(mainwin->summaryview, NULL);
        folderview_rescan_all();
 }
 
@@ -3080,7 +3080,7 @@ static void update_summary_cb(MainWindow *mainwin, guint action,
        if (!fitem) return;
 
        folder_item_scan(fitem);
-       summary_show(mainwin->summaryview, fitem, TRUE);
+       summary_show(mainwin->summaryview, fitem);
 }
 
 static void prev_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
index 614ca38..5639af2 100644 (file)
@@ -511,7 +511,7 @@ void prefs_folder_item_ok_cb(GtkWidget *widget,
        if (dialog->item == dialog->folderview->summaryview->folder_item &&
            (prefs->enable_simplify_subject != old_simplify_val ||  
            0 != strcmp2(prefs->simplify_subject_regexp, old_simplify_str))) 
-               summary_show(dialog->folderview->summaryview, dialog->item, FALSE);
+               summary_show(dialog->folderview->summaryview, dialog->item);
                
        if (old_simplify_str) g_free(old_simplify_str);
 
index 488de62..937375c 100644 (file)
@@ -672,8 +672,7 @@ GtkCTreeNode * summary_find_prev_important_score(SummaryView *summaryview,
                return best_node;
 }
 
-gboolean summary_show(SummaryView *summaryview, FolderItem *item,
-                     gboolean update_cache)
+gboolean summary_show(SummaryView *summaryview, FolderItem *item)
 {
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
        GtkCTreeNode *node;
@@ -682,7 +681,6 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
        gboolean is_refresh;
        guint selected_msgnum = 0;
        guint displayed_msgnum = 0;
-       GtkCTreeNode *selected_node = summaryview->folderview->selected;
        GSList *cur;
 
        if (summary_is_locked(summaryview)) return FALSE;
@@ -693,8 +691,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
        STATUSBAR_POP(summaryview->mainwin);
 
        is_refresh = (!prefs_common.open_inbox_on_inc &&
-                     item == summaryview->folder_item &&
-                     update_cache == FALSE) ? TRUE : FALSE;
+                     item == summaryview->folder_item) ? TRUE : FALSE;
        if (is_refresh) {
                selected_msgnum = summary_get_msgnum(summaryview,
                                                     summaryview->selected);
@@ -724,8 +721,6 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
                folder_update_op_count();
        }
        
-       summaryview->folderview->opened = selected_node;
-
        gtk_clist_freeze(GTK_CLIST(ctree));
 
        summary_clear_list(summaryview);
@@ -3672,7 +3667,7 @@ void summary_filter(SummaryView *summaryview)
         * we want the lock to be context aware...  
         */
        if (global_processing) {
-               summary_show(summaryview, summaryview->folder_item, TRUE);              
+               summary_show(summaryview, summaryview->folder_item);
        }               
 }
 
@@ -4252,7 +4247,7 @@ void summary_set_column_order(SummaryView *summaryview)
        gtk_container_add(GTK_CONTAINER(scrolledwin), ctree);
        gtk_widget_show(ctree);
 
-       summary_show(summaryview, item, FALSE);
+       summary_show(summaryview, item);
 
        summary_select_by_msgnum(summaryview, selected_msgnum);
        summaryview->displayed = summary_find_msg_by_msgnum(summaryview, displayed_msgnum);
@@ -4965,7 +4960,7 @@ void summary_toggle_show_read_messages(SummaryView *summaryview)
                summaryview->folder_item->hide_read_msgs = 0;
        else
                summaryview->folder_item->hide_read_msgs = 1;
-       summary_show(summaryview, summaryview->folder_item, FALSE);
+       summary_show(summaryview, summaryview->folder_item);
 }
  
 static void summary_set_hide_read_msgs_menu (SummaryView *summaryview,
index 7e545f7..1a10403 100644 (file)
@@ -146,8 +146,7 @@ SummaryView *summary_create(void);
 
 void summary_init                (SummaryView          *summaryview);
 gboolean summary_show            (SummaryView          *summaryview,
-                                  FolderItem           *fitem,
-                                  gboolean              update_cache);
+                                  FolderItem           *fitem);
 void summary_clear_list                  (SummaryView          *summaryview);
 void summary_clear_all           (SummaryView          *summaryview);