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
This commit is contained in:
Jonas Dreßler 2020-01-20 15:27:26 +01:00 committed by Florian Müllner
parent 88ac339774
commit 49170585b3

View File

@ -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));
}