a11y: Realize GtkStackPage parent context before trying to get a ref
authorSebastian Keller <skeller@gnome.org>
Wed, 25 May 2022 12:56:05 +0000 (14:56 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2022 11:21:49 +0000 (07:21 -0400)
commit1860da7a1a57efc5e03f06c40dc99a0242f41748
tree21bb7cc65a8bf091ef6e626150e02152c7eb39d1
parent3523b02a350a888a62da125981dad98bc575b627
a11y: Realize GtkStackPage parent context before trying to get a ref

If a context is not realized, calling gtk_at_spi_context_to_ref() will
return a null ref, because its path has not been initialized yet. This
was already done for all other cases in get_parent_context_ref(), but
was missing for the GtkStackPage case.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4944
gtk/a11y/gtkatspicontext.c