From 92bea8a73e630145d9cc8f27cc2e8ce86299fd65 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 29 Jan 2024 16:18:31 +0100 Subject: [PATCH] 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: --- src/st/st-button.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/st/st-button.c b/src/st/st-button.c index a958c1491..42745f361 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -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);