mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
GtkAssistant: don't hide headerbar from a11y
GtkAssistant has its own accessible implementation, and we forgot to update it when we added a headerbar.
This commit is contained in:
parent
19e1a8feb4
commit
256d52152c
@ -2425,7 +2425,7 @@ gtk_assistant_accessible_get_n_children (AtkObject *accessible)
|
|||||||
if (widget == NULL)
|
if (widget == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return g_list_length (GTK_ASSISTANT (widget)->priv->pages) + 1;
|
return g_list_length (GTK_ASSISTANT (widget)->priv->pages) + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
static AtkObject *
|
static AtkObject *
|
||||||
@ -2461,6 +2461,11 @@ gtk_assistant_accessible_ref_child (AtkObject *accessible,
|
|||||||
child = priv->action_area;
|
child = priv->action_area;
|
||||||
title = NULL;
|
title = NULL;
|
||||||
}
|
}
|
||||||
|
else if (index == n_pages + 1)
|
||||||
|
{
|
||||||
|
child = priv->headerbar;
|
||||||
|
title = NULL;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user