[gtk/css-line-height2: 4/7] gtk-demo: Set line height from markup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/css-line-height2: 4/7] gtk-demo: Set line height from markup
- Date: Sun, 22 Aug 2021 18:46:13 +0000 (UTC)
commit 21fe4dddb17b2a1ba2de1457bede151245307783
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 22 13:48:26 2021 -0400
gtk-demo: Set line height from markup
Keep the import-markup code in sync with GtkTextBuffer.
demos/gtk-demo/fontify.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/demos/gtk-demo/fontify.c b/demos/gtk-demo/fontify.c
index 8eb3c148f4..2ceeab9416 100644
--- a/demos/gtk-demo/fontify.c
+++ b/demos/gtk-demo/fontify.c
@@ -257,6 +257,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]