[gtk/new-pango-attributes: 25/26] Support new pango attributes




commit 357b97b5a6eda3c69b256ea270dad7e7c7f4dc99
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]