[gnome-shell/eos3.8: 137/255] st-entry: Set text-related CSS properties on the internal ClutterText



commit ee1595f6615881fb1a56a513f08d0a6c3b000aec
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Mon Mar 26 12:38:57 2018 +0100

    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.

 src/st/st-entry.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index 28dddc0537..c5ec9318bf 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -260,6 +260,9 @@ st_entry_style_changed (StWidget *self)
 
   _st_set_text_from_style (CLUTTER_TEXT (priv->entry), theme_node);
 
+  st_theme_node_get_foreground_color (theme_node, &color);
+  clutter_text_set_color (CLUTTER_TEXT (priv->entry), &color);
+
   if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size))
     clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size));
 


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