diff options
Diffstat (limited to 'src/summaryview.c')
-rw-r--r-- | src/summaryview.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c index f8f00dd8..58493898 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -384,6 +384,7 @@ static GtkItemFactoryEntry summary_popup_entries[] = {N_("/_Print..."), NULL, summary_print, 0, NULL} }; + SummaryView *summary_create(void) { SummaryView *summaryview; @@ -720,6 +721,7 @@ static gboolean summary_free_msginfo_func(GtkTreeModel *model, void summary_clear_list(SummaryView *summaryview) { GtkTreeView *treeview = GTK_TREE_VIEW(summaryview->treeview); + GtkAdjustment *adj; gtk_tree_model_foreach(GTK_TREE_MODEL(summaryview->store), summary_free_msginfo_func, NULL); @@ -757,6 +759,10 @@ void summary_clear_list(SummaryView *summaryview) gtk_tree_store_clear(summaryview->store); gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(summaryview->store)); + /* ensure that the "value-changed" signal is always emitted */ + adj = gtk_tree_view_get_vadjustment(treeview); + adj->value = 0.0; + gtkut_tree_sortable_unset_sort_column_id (GTK_TREE_SORTABLE(summaryview->store)); } |