diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.ja | 6 | ||||
-rw-r--r-- | src/summaryview.c | 6 |
3 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-05-20 + + * src/summaryview.c: summaryview_clear_list(): set the value of + vadjustment to 0.0 so that the "value-changed" signal is always + emitted (fixes the scroll problem on refresh). + 2005-05-19 * src/message_search.c: improved the interface and made code cleanup. diff --git a/ChangeLog.ja b/ChangeLog.ja index a8b546cb..1c469e77 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,9 @@ +2005-05-20 + + * src/summaryview.c: summaryview_clear_list(): "value-changed" + シグナルが常に発行されるように vadjustment の値を 0.0 にセット + (更新時のスクロール問題を修正)。 + 2005-05-19 * src/message_search.c: インタフェースを改良し、コードを整理。 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)); } |