[gtk/css-line-height2: 8/12] textview: Set line height from markup




commit c2c17832902db749310178158aa785ed52883fb0
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]