[gnome-shell] st/entry: Add css class name to hint-text label



commit 49170585b319289915d49e44b0350120ee30b0b1
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Jan 20 15:27:26 2020 +0100

    st/entry: Add css class name to hint-text label
    
    Allow styling the hint text of the entry using css easily.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/944

 src/st/st-entry.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index 741ba90ff8..ba3d1ca603 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -1092,6 +1092,8 @@ st_entry_set_hint_text (StEntry     *entry,
   g_return_if_fail (ST_IS_ENTRY (entry));
 
   label = st_label_new (text);
+  st_widget_add_style_class_name (label, "hint-text");
+
   st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label));
 }
 


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