aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/compose.c5
-rw-r--r--src/textview.c3
3 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d658654..8c236c7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)