From 27f32b7f9b14373b85be1a1c2d951b47739e90e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Thu, 1 Sep 2022 16:19:59 +0200 Subject: [PATCH] GtkInscription: Set the a11y label when updating the text property --- gtk/gtkinscription.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtkinscription.c b/gtk/gtkinscription.c index 7ce22702eb..42dff1eada 100644 --- a/gtk/gtkinscription.c +++ b/gtk/gtkinscription.c @@ -795,6 +795,11 @@ gtk_inscription_set_text (GtkInscription *self, g_free (self->text); self->text = g_strdup (text); + gtk_accessible_update_property (GTK_ACCESSIBLE (self), + GTK_ACCESSIBLE_PROPERTY_LABEL, self->text, + -1); + + pango_layout_set_text (self->layout, self->text ? self->text : "", -1);