From: Mat Date: Sun, 28 Aug 2022 13:51:31 +0000 (+0300) Subject: gtkatspiselection: Retrieve the correct GtkNotebook tab widget X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~3^2~44^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=df40efd50d1f32cc457d76bd112d5622633eddcc;p=gtk4.git 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. --- 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)