diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2022-05-25 14:29:41 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-05-25 14:29:41 +0000 |
commit | 166af489049646a8f1d0ffe3fa3ca7d714c66e68 (patch) | |
tree | 52784bc5bc0f30617054714c3166f3813d7249d8 | |
parent | 36fbbfc5c780bf67b2a2acabc1f4c8011f73a4a0 (diff) | |
parent | 6e3dbc42a8b9644350ff582efca97ed2ce8bb0dd (diff) | |
download | gtk+-166af489049646a8f1d0ffe3fa3ca7d714c66e68.tar.gz |
Merge branch 'fix-stack-page-at-spi-parent' into 'main'
a11y: Realize GtkStackPage parent context before trying to get a ref
Closes #4944
See merge request GNOME/gtk!4757
-rw-r--r-- | gtk/a11y/gtkatspicontext.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 7c49929aff..a0086365c4 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -436,7 +436,11 @@ get_parent_context_ref (GtkAccessible *accessible) gtk_accessible_get_at_context (GTK_ACCESSIBLE (parent)); if (parent_context != NULL) - res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context)); + { + gtk_at_context_realize (parent_context); + + res = gtk_at_spi_context_to_ref (GTK_AT_SPI_CONTEXT (parent_context)); + } } if (res == NULL) |