[gtk: 1/2] GtkInscription: Set the a11y label when updating the text property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] GtkInscription: Set the a11y label when updating the text property
- Date: Thu, 1 Sep 2022 14:38:50 +0000 (UTC)
commit 27f32b7f9b14373b85be1a1c2d951b47739e90e2
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date: Thu Sep 1 16:19:59 2022 +0200
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]