aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-05-20 07:40:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-05-20 07:40:15 +0000
commit68828e3070d088dc7cf30cfa9ffc8b3ffb5f7bfd (patch)
tree0086cb749ac8c44e342f66da1d0facc025cff199 /src
parent7876aaae5c85d8c59790494ce149c5f4376f5f9a (diff)
fixed the scroll problem of the summary view on refresh.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@273 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/summaryview.c6
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));
}