[pango/visible-things: 6/11] layout: Use a show_line_separators attribute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/visible-things: 6/11] layout: Use a show_line_separators attribute
- Date: Sat, 13 Jul 2019 23:53:23 +0000 (UTC)
commit cb6ee0f96dd86741f72d932435a7f10d47f44194
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 97beccc8..9a6e96a7 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3991,6 +3991,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]