aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index b620f6a1..44dfd51b 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -940,9 +940,7 @@ void summary_clear_list(SummaryView *summaryview)
procmsg_msg_list_free(summaryview->all_mlist);
summaryview->all_mlist = NULL;
- gtk_tree_view_set_model(treeview, NULL);
- gtk_tree_store_clear(summaryview->store);
- gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(summaryview->store));
+ gtkut_tree_view_fast_clear(treeview, summaryview->store);
/* ensure that the "value-changed" signal is always emitted */
adj = gtk_tree_view_get_vadjustment(treeview);
@@ -5073,10 +5071,8 @@ void summary_qsearch_reset(SummaryView *summaryview)
messageview_clear(summaryview->messageview);
- gtk_tree_view_set_model(GTK_TREE_VIEW(summaryview->treeview), NULL);
- gtk_tree_store_clear(summaryview->store);
- gtk_tree_view_set_model(GTK_TREE_VIEW(summaryview->treeview),
- GTK_TREE_MODEL(summaryview->store));
+ gtkut_tree_view_fast_clear(GTK_TREE_VIEW(summaryview->treeview),
+ summaryview->store);
gtkut_tree_sortable_unset_sort_column_id
(GTK_TREE_SORTABLE(summaryview->store));
summaryview->total_size = 0;
@@ -5196,10 +5192,8 @@ void summary_qsearch(SummaryView *summaryview)
(GSignalMatchType)G_SIGNAL_MATCH_DATA,
0, 0, NULL, NULL, summaryview);
- gtk_tree_view_set_model(GTK_TREE_VIEW(summaryview->treeview), NULL);
- gtk_tree_store_clear(summaryview->store);
- gtk_tree_view_set_model(GTK_TREE_VIEW(summaryview->treeview),
- GTK_TREE_MODEL(summaryview->store));
+ gtkut_tree_view_fast_clear(GTK_TREE_VIEW(summaryview->treeview),
+ summaryview->store);
gtkut_tree_sortable_unset_sort_column_id
(GTK_TREE_SORTABLE(summaryview->store));
summaryview->total_size = 0;