summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-02-21 16:48:28 +0000
committerMatthias Clasen <mclasen@redhat.com>2023-02-21 16:48:28 +0000
commit871c46591aee14e3f70e1ff6ec10659084df888f (patch)
treec1c7c1a90c8c1b36662642760cdbb540b8feaa84
parentcad5771a662cc17266b70828e394425c0ad94a97 (diff)
parentd906b456a89e3c43a5fbc42d98a99429577fead4 (diff)
downloadgtk+-871c46591aee14e3f70e1ff6ec10659084df888f.tar.gz
Merge branch 'improve_gtknotebook_a11y' into 'main'
GtkNotebook: Improve the labels of notebook pages for a11y See merge request GNOME/gtk!5546
-rw-r--r--gtk/gtknotebook.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index afdc350007..e546f541ac 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4033,9 +4033,6 @@ gtk_notebook_insert_notebook_page (GtkNotebook *notebook,
g_signal_connect (controller, "enter", G_CALLBACK (gtk_notebook_tab_drop_enter), page);
g_signal_connect (controller, "leave", G_CALLBACK (gtk_notebook_tab_drop_leave), page);
gtk_widget_add_controller (page->tab_widget, controller);
- gtk_accessible_update_property (GTK_ACCESSIBLE (page->tab_widget),
- GTK_ACCESSIBLE_PROPERTY_LABEL, _("Tab"),
- -1);
page->expand = FALSE;
page->fill = TRUE;
@@ -4335,6 +4332,11 @@ gtk_notebook_update_labels (GtkNotebook *notebook)
text = page->tab_text;
else
text = string;
+
+ gtk_accessible_update_property (GTK_ACCESSIBLE (page->tab_widget),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, text,
+ -1);
+
if (notebook->show_tabs)
{
if (page->default_tab)