diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-14 08:28:00 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-14 08:28:00 +0000 |
commit | 87de10622f56347f91c3912a31b955a197c31a37 (patch) | |
tree | 88a3f8f904160a3d1a8de31d3b63e8051c98dc2a | |
parent | 68e25a400aa2bba10ef0e02ff23e0cb1d2358d80 (diff) |
scroll the compose view to the cursor position after inserting signatures or files.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@339 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/compose.c | 6 |
3 files changed, 15 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2005-06-14 + * src/compose.c: scroll the view to the cursor position after + inserting signatures or files. + +2005-06-14 + * src/mh.c: mh_remove_msg(): fixed a bug that unintentionally set FolderItem::last_num to 0 (which caused wrong unread number display). diff --git a/ChangeLog.ja b/ChangeLog.ja index 8d30ab1a..da3b9f7d 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2005-06-14 + * src/compose.c: 署名またはファイルの挿入後ビューをカーソル位置まで + スクロールするようにした。 + +2005-06-14 + * src/mh.c: mh_remove_msg(): 意図せず FolderItem::last_num を 0 に セットしていたバグを修正(間違った未読数表示を引き起こしていた)。 diff --git a/src/compose.c b/src/compose.c index 503f8434..093b8da6 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1598,6 +1598,8 @@ static void compose_insert_sig(Compose *compose, gboolean replace) compose->autowrap = prev_autowrap; if (compose->autowrap) compose_wrap_all(compose); + + gtk_text_view_scroll_mark_onscreen(text, mark); } static gchar *compose_get_signature_str(Compose *compose) @@ -1694,11 +1696,13 @@ static void compose_insert_file(Compose *compose, const gchar *file) g_free(str); } + fclose(fp); + compose->autowrap = prev_autowrap; if (compose->autowrap) compose_wrap_all(compose); - fclose(fp); + gtk_text_view_scroll_mark_onscreen(text, mark); } static void compose_attach_append(Compose *compose, const gchar *file, |