summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2022-08-28 16:51:31 +0300
committerMat <mail@mathias.is>2022-08-28 17:02:01 +0300
commitdf40efd50d1f32cc457d76bd112d5622633eddcc (patch)
tree2c4bab55f9cc8f3495b18eba6c1c983505786a6e /gtk/a11y
parentdb5868d89b1d1c96db8b35894786c6419ba64d17 (diff)
downloadgtk+-df40efd50d1f32cc457d76bd112d5622633eddcc.tar.gz
gtkatspiselection: Retrieve the correct GtkNotebook tab widget
A typo resulted in the tab container widget being retrieved instead of the tab widget. If an adjacent action widget was present, an infinite loop occurred when switching tabs while a screen reader was enabled.
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkatspiselection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/a11y/gtkatspiselection.c b/gtk/a11y/gtkatspiselection.c
index adfdbf021a..9ac86b7b11 100644
--- a/gtk/a11y/gtkatspiselection.c
+++ b/gtk/a11y/gtkatspiselection.c
@@ -864,7 +864,7 @@ notebook_handle_method (GDBusConnection *connection,
for (child = gtk_widget_get_first_child (widget);
child;
- child = gtk_widget_get_next_sibling (widget))
+ child = gtk_widget_get_next_sibling (child))
{
/* skip actions */
if (gtk_accessible_get_accessible_role (GTK_ACCESSIBLE (child)) != GTK_ACCESSIBLE_ROLE_TAB)