diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-12 14:50:49 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-12 21:46:06 +0000 |
commit | e49e084f4c767c15a88d6b374fc6840be04a4bac (patch) | |
tree | fdc67bf895074f2acb393ba9d9a8a684e35fb808 /gtk/gtkstack.c | |
parent | 995daa1e29775dc1b25427871a248440c49cab72 (diff) | |
download | gtk+-e49e084f4c767c15a88d6b374fc6840be04a4bac.tar.gz |
a11y: Use the stack page title as its accessible label
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r-- | gtk/gtkstack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 21505f6809..4e60d838c6 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -2778,6 +2778,10 @@ gtk_stack_page_set_title (GtkStackPage *self, g_free (self->title); self->title = g_strdup (setting); g_object_notify_by_pspec (G_OBJECT (self), stack_page_props[CHILD_PROP_TITLE]); + + gtk_accessible_update_property (GTK_ACCESSIBLE (self), + GTK_ACCESSIBLE_PROPERTY_LABEL, self->title, + -1); } |