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:
parent
88ac339774
commit
49170585b3
@ -1092,6 +1092,8 @@ st_entry_set_hint_text (StEntry *entry,
|
|||||||
g_return_if_fail (ST_IS_ENTRY (entry));
|
g_return_if_fail (ST_IS_ENTRY (entry));
|
||||||
|
|
||||||
label = st_label_new (text);
|
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));
|
st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user