diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-05-28 06:00:47 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-05-28 06:00:47 +0000 |
commit | 288eac7584751c1dd35bb28ea22a09ad304b3676 (patch) | |
tree | a7d33a0881f1f83deaaaa291a4004ff713d129cc | |
parent | 1499320dd10a1cbfb52240d611725b056c094611 (diff) |
properly set line-space for auto-wrapped lines (fixes Bug #64).
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3076 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/compose.c | 5 | ||||
-rw-r--r-- | src/textview.c | 3 |
3 files changed, 12 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2012-05-28 + + * src/textview.c + src/compose.c: properly set line-space for auto-wrapped lines + (fixes Bug #64). + 2012-05-18 * src/main.c: open compose window before receiving on startup diff --git a/src/compose.c b/src/compose.c index 3ea5e586..e81e7ccf 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5490,9 +5490,12 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode) } gtk_text_view_set_pixels_above_lines - (GTK_TEXT_VIEW(text), prefs_common.line_space / 2); + (GTK_TEXT_VIEW(text), + prefs_common.line_space - prefs_common.line_space / 2); gtk_text_view_set_pixels_below_lines (GTK_TEXT_VIEW(text), prefs_common.line_space / 2); + gtk_text_view_set_pixels_inside_wrap + (GTK_TEXT_VIEW(text), prefs_common.line_space); n_entries = sizeof(compose_popup_entries) / sizeof(compose_popup_entries[0]); diff --git a/src/textview.c b/src/textview.c index 97234ac9..260f7791 100644 --- a/src/textview.c +++ b/src/textview.c @@ -1606,8 +1606,9 @@ void textview_set_font(TextView *textview, const gchar *codeset) } } - gtk_text_view_set_pixels_above_lines(text, prefs_common.line_space / 2); + gtk_text_view_set_pixels_above_lines(text, prefs_common.line_space - prefs_common.line_space / 2); gtk_text_view_set_pixels_below_lines(text, prefs_common.line_space / 2); + gtk_text_view_set_pixels_inside_wrap(text, prefs_common.line_space); } void textview_set_position(TextView *textview, gint pos) |