summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-20 20:06:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 15:57:50 -0400
commit417b3f9c6b849a833c2ff71890ba15b25b5b07b7 (patch)
treefe7bf27c999bf104fd7fe093151ab815b423e2da /gtk/gtktextattributes.c
parent2d84a1c63ef7d8d24b1476b4b90afa3acb1171d7 (diff)
downloadgtk+-417b3f9c6b849a833c2ff71890ba15b25b5b07b7.tar.gz
Implement text transforms for GtkTextView
Add a property to GtkTextTag and do all the legwork to translate it to the Pango attribute.
Diffstat (limited to 'gtk/gtktextattributes.c')
-rw-r--r--gtk/gtktextattributes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c
index fbc63a7d63..87208a8100 100644
--- a/gtk/gtktextattributes.c
+++ b/gtk/gtktextattributes.c
@@ -438,6 +438,9 @@ _gtk_text_attributes_fill_from_tags (GtkTextAttributes *dest,
if (tag->priv->insert_hyphens_set)
dest->no_hyphens = vals->no_hyphens;
+
+ if (tag->priv->text_transform_set)
+ dest->text_transform = vals->text_transform;
}
dest->left_margin += left_margin_accumulative;
@@ -467,7 +470,8 @@ _gtk_text_tag_affects_size (GtkTextTag *tag)
priv->wrap_mode_set ||
priv->invisible_set ||
priv->font_features_set ||
- priv->letter_spacing_set;
+ priv->letter_spacing_set ||
+ priv->text_transform_set;
}
gboolean