[gtk/bump-pango: 6/7] label: Handle insert_hyphens pango attribute
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/bump-pango: 6/7] label: Handle insert_hyphens pango attribute
- Date: Fri, 1 Nov 2019 13:21:24 +0000 (UTC)
commit 71dc23ca043b3d1109aad2dead3c57fe3210921a
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]