gtkatspiselection: Retrieve the correct GtkNotebook tab widget
authorMat <mail@mathias.is>
Sun, 28 Aug 2022 13:51:31 +0000 (16:51 +0300)
committerMat <mail@mathias.is>
Sun, 28 Aug 2022 14:02:01 +0000 (17:02 +0300)
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.

gtk/a11y/gtkatspiselection.c

index adfdbf021ac8768be4acdd9dffe253c92974ffab..9ac86b7b119ad250984d414567bc48662d836398 100644 (file)
@@ -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)