[gtk/new-pango-attributes: 1/2] Support new pango attributes




commit 2858084eff3aea543ba738c11209765c11c5e633
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 24 12:48:40 2021 -0400

    Support new pango attributes
    
    Support new Pango attributes for segmentation
    in GtkBuilder.

 gtk/gtkpango.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c
index 0fa65a3220..94207eb5cc 100644
--- a/gtk/gtkpango.c
+++ b/gtk/gtkpango.c
@@ -261,6 +261,12 @@ attribute_from_text (GtkBuilder  *builder,
       if (gtk_builder_value_from_string_type (builder, PANGO_TYPE_TEXT_TRANSFORM, value, &val, error))
         attribute = pango_attr_text_transform_new (g_value_get_enum (&val));
       break;
+    case PANGO_ATTR_WORD:
+      attribute = pango_attr_word_new ();
+      break;
+    case PANGO_ATTR_SENTENCE:
+      attribute = pango_attr_sentence_new ();
+      break;
     case PANGO_ATTR_INVALID:
     default:
       break;


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