[balsa] More work around MR gtk!236
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] More work around MR gtk!236
- Date: Wed, 18 Jul 2018 16:52:30 +0000 (UTC)
commit e4c05c73db7d6aa91e051c9f74178ab3446ffe92
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Jul 18 12:45:17 2018 -0400
More work around MR gtk!236
GtkSourceView sets 2px left and right margins, so we need to reset
them to zero.
* src/balsa-mime-widget-text.c (balsa_mime_widget_new_text): set
the GtkTextView margins to zero;
* src/sendmsg-window.c (create_text_area): ditto.
ChangeLog | 8 ++++++++
src/balsa-mime-widget-text.c | 2 ++
src/sendmsg-window.c | 2 ++
3 files changed, 12 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 7e99339b0..0f6e8eef2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-07-18 Peter Bloomfield <pbloomfield bellsouth net>
+
+ More work around MR gtk!236
+
+ * src/balsa-mime-widget-text.c (balsa_mime_widget_new_text): set
+ the GtkTextView margins to zero;
+ * src/sendmsg-window.c (create_text_area): ditto.
+
2018-07-18 Peter Bloomfield <pbloomfield bellsouth net>
Work around MR gtk!236
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index dc2140a56..2a20e4a90 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -183,6 +183,8 @@ balsa_mime_widget_new_text(BalsaMessage * bm, LibBalsaMessageBody * mime_body,
gtk_text_view_set_left_margin(GTK_TEXT_VIEW(mw->widget), BALSA_LEFT_MARGIN);
gtk_text_view_set_right_margin(GTK_TEXT_VIEW(mw->widget), BALSA_RIGHT_MARGIN);
#else /* GTK_MR_236_IS_MERGED */
+ gtk_text_view_set_left_margin(GTK_TEXT_VIEW(mw->widget), 0);
+ gtk_text_view_set_right_margin(GTK_TEXT_VIEW(mw->widget), 0);
gtk_widget_set_margin_start(mw->widget, BALSA_LEFT_MARGIN);
gtk_widget_set_margin_end(mw->widget, BALSA_RIGHT_MARGIN);
#endif /* GTK_MR_236_IS_MERGED */
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index f0b16caf7..ec380387d 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -2875,6 +2875,8 @@ create_text_area(BalsaSendmsg * bsmsg)
gtk_text_view_set_left_margin(text_view, 2);
gtk_text_view_set_right_margin(text_view, 2);
#else /* GTK_MR_236_IS_MERGED */
+ gtk_text_view_set_left_margin(text_view, 0);
+ gtk_text_view_set_right_margin(text_view, 0);
gtk_widget_set_margin_start(bsmsg->text, 2);
gtk_widget_set_margin_end(bsmsg->text, 2);
#endif /* GTK_MR_236_IS_MERGED */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]