[libadwaita/wip/exalm/view-stack-crash: 9/9] view-stack: Fix a typo in set_visible_child()




commit ac6dac4475064bbf15ed5e33a5f3de7a4b7ecd02
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Nov 24 18:33:07 2021 +0500

    view-stack: Fix a typo in set_visible_child()
    
    page -> p.
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/332

 src/adw-view-stack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-view-stack.c b/src/adw-view-stack.c
index 5343997a..a5596a87 100644
--- a/src/adw-view-stack.c
+++ b/src/adw-view-stack.c
@@ -549,7 +549,7 @@ set_visible_child (AdwViewStack     *self,
     for (l = self->children; l; l = l->next) {
       AdwViewStackPage *p = l->data;
 
-      if (gtk_widget_get_visible (page->widget)) {
+      if (gtk_widget_get_visible (p->widget)) {
         page = p;
 
         break;


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