st: Do not use markup in button labels
It sounds strange that buttons would admit Pango markup in their label text. It sounds better to default to plain text, and let users wanting markup to access the child directly. This also makes the first label being set consistent with later text being assigned wrt markup usage, since the non-markup ClutterText API is used if the child is already present and of the expected type. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>
This commit is contained in:
parent
7b4054564e
commit
92bea8a73e
@ -682,7 +682,6 @@ st_button_set_label (StButton *button,
|
||||
"text", priv->text,
|
||||
"line-alignment", PANGO_ALIGN_CENTER,
|
||||
"ellipsize", PANGO_ELLIPSIZE_END,
|
||||
"use-markup", TRUE,
|
||||
"x-align", CLUTTER_ACTOR_ALIGN_CENTER,
|
||||
"y-align", CLUTTER_ACTOR_ALIGN_CENTER,
|
||||
NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user