[gtk/css-line-height2: 10/12] 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: 10/12] gtk-demo: Set line height from markup
- Date: Sun, 22 Aug 2021 19:16:06 +0000 (UTC)
commit a9003f7ac05d7518dc5868c124c767d758717792
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]