[gtk: 1/2] gtkatspiselection: Retrieve the correct GtkNotebook tab widget




commit df40efd50d1f32cc457d76bd112d5622633eddcc
Author: Mat <mail mathias is>
Date:   Sun Aug 28 16:51:31 2022 +0300

    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.

 gtk/a11y/gtkatspiselection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]