[gtk/bump-pango: 11/12] label: Handle insert_hyphens pango attribute



commit 3e57b0da533c2f8f9c558dda226a6f11fbd2afe9
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 13 17:33:33 2019 -0400

    label: Handle insert_hyphens pango attribute
    
    This was introduced in Pango 1.44.4.

 gtk/gtklabel.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 11133df6e2..7ff59dc505 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -1550,6 +1550,12 @@ attribute_from_text (GtkBuilder   *builder,
       if (gtk_builder_value_from_string_type (builder, PANGO_TYPE_SHOW_FLAGS, value, &val, error))
        attribute = pango_attr_show_new (g_value_get_flags (&val));
       break;
+#endif
+#if PANGO_VERSION_CHECK(1,44,4)
+    case PANGO_ATTR_INSERT_HYPHENS:
+      if (gtk_builder_value_from_string_type (builder, G_TYPE_BOOLEAN, value, &val, error))
+       attribute = pango_attr_insert_hyphens_new (g_value_get_boolean (&val));
+      break;
 #endif
     case PANGO_ATTR_INVALID:
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]