[pango/visible-things: 82/87] layout: Use a show_line_separators attribute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/visible-things: 82/87] layout: Use a show_line_separators attribute
- Date: Thu, 18 Jul 2019 16:18:51 +0000 (UTC)
commit c19b3c27b5d0decbc6cad4616f55141e10f3edca
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 13 19:39:17 2019 -0400
layout: Use a show_line_separators attribute
Use a show_line_separators attribute to implement
visible LS in single-paragraph mode.
pango/pango-layout.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 7e450f5e..4018f976 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4051,6 +4051,12 @@ pango_layout_get_effective_attributes (PangoLayout *layout)
pango_attr_list_insert_before (attrs, attr);
}
+ if (layout->single_paragraph)
+ {
+ PangoAttribute *attr = pango_attr_show_line_separators_new (TRUE);
+ pango_attr_list_insert_before (attrs, attr);
+ }
+
return attrs;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]