From: Lukáš Tyrychtr Date: Thu, 1 Sep 2022 14:19:59 +0000 (+0200) Subject: GtkInscription: Set the a11y label when updating the text property X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~3^2~25^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=27f32b7f9b14373b85be1a1c2d951b47739e90e2;p=gtk4.git GtkInscription: Set the a11y label when updating the text property --- 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);