[gtk/css-line-height2: 3/7] textview: Set line height from markup




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