st-entry: Set text-related CSS properties on the internal ClutterText

Call _st_set_text_from_style() when updating the entry's style, so
that CSS style properties such as text-decoration or letter-spacing
are applied over the internal ClutterText instance.
This commit is contained in:
Mario Sanchez Prada 2018-03-26 12:38:57 +01:00 committed by Marco Trevisan
parent 376d696b8b
commit be76b19300

View File

@ -309,8 +309,7 @@ st_entry_style_changed (StWidget *self)
theme_node = st_widget_get_theme_node (self); theme_node = st_widget_get_theme_node (self);
st_theme_node_get_foreground_color (theme_node, &color); _st_set_text_from_style (CLUTTER_TEXT (priv->entry), theme_node);
clutter_text_set_color (CLUTTER_TEXT (priv->entry), &color);
if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size)) if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size))
clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size)); clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size));