[gtk/css-line-height2: 84/87] textview: Set line height from markup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/css-line-height2: 84/87] textview: Set line height from markup
- Date: Sun, 22 Aug 2021 17:50:41 +0000 (UTC)
commit b6a0a261ff6dbcff1ca11179416e794f97f5973d
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 22 13:39:34 2021 -0400
textview: Set line height from markup
Note that we ignore the absolute-line-height
attribute for now.
gtk/gtktextbuffer.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 2101776e95..a611e48a91 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -4691,6 +4691,9 @@ insert_tags_for_attributes (GtkTextBuffer *buffer,
#if PANGO_VERSION_CHECK(1, 49, 0)
case PANGO_ATTR_LINE_HEIGHT:
+ FLOAT_ATTR (line_height);
+ break;
+
case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
break;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]