GtkNotebookPage unable to set tab accessibility name
Submitted by Marcin
Link to original bug (#787618)
Description
Created attachment 359699 Example setting up notebook accessibility name
It seems that there's no way to set GtkNotebookPage an accessibility name. In the given exampleI've set the acc name to notebook, label and box. When browsing the acc using Accercisser it will always display text of label_page1. Tried to search for it in the docs but it seems there's no way to set the acc name for the tab. The atk code instead is trying to get the name from ATK_ROLE_TAB_PAGE object as can be seen below but it's always null.
static const gchar * gtk_notebook_page_accessible_get_name (AtkObject *accessible) { GtkWidget *label;
if (accessible->name != NULL) return accessible->name;
label = get_label_from_notebook_page (GTK_NOTEBOOK_PAGE_ACCESSIBLE (accessible)); if (GTK_IS_LABEL (label)) return gtk_label_get_text (GTK_LABEL (label));
return NULL; }
Based on the above I've set this to blocker as there's no work around of this.
Attachment 359699, "Example setting up notebook accessibility name":
notebook_bug.py
Version: 3.22.x