aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-13 07:19:47 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-13 07:19:47 +0000
commitd1d309683cf429d32fb5b206b042a1fe9d2490a6 (patch)
treec7640ce42f2669799f21c0119f398ecff3978906 /src/summaryview.c
parentaa02e39eae109de2e04daf564661127a80d655cd (diff)
summary_show_queued_msgs(): scroll summary view to make added messages are visible.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2614 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index b703b847..38171fb7 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1066,6 +1066,17 @@ void summary_show_queued_msgs(SummaryView *summaryview)
gtk_tree_store_append(store, &iter, NULL);
summary_set_row(summaryview, &iter, msginfo);
+ if (cur == qlist) {
+ GtkTreePath *path;
+
+ path = gtk_tree_model_get_path(GTK_TREE_MODEL(store),
+ &iter);
+ gtk_tree_view_scroll_to_cell
+ (GTK_TREE_VIEW(summaryview->treeview), path,
+ NULL, FALSE, 0.0, 0.0);
+ gtk_tree_path_free(path);
+ }
+
summaryview->total_size += msginfo->size;
}