mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Support new pango attributes
Support new Pango attributes for segmentation in GtkBuilder.
This commit is contained in:
parent
5e90d63373
commit
357b97b5a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user