aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--configure.in2
-rw-r--r--src/summaryview.c11
3 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a1099044..590ff142 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-07-13
+ * src/summaryview.c: summary_show_queued_msgs(): scroll summary view
+ to make added messages are visible.
+
+2010-07-13
+
* src/mainwindow.c: show error dialog on failure.
2010-07-13
diff --git a/configure.in b/configure.in
index 9db3ac1b..ccc6c247 100644
--- a/configure.in
+++ b/configure.in
@@ -9,7 +9,7 @@ MINOR_VERSION=1
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=beta1
+EXTRA_VERSION=beta2
BUILD_REVISION=1100
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
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;
}