[libadwaita/wip/exalm/leaflet-fix: 15/15] leaflet: Fix notify order when starting a swipe




commit a3af1afbecd879c4c4b9c917e14fa3bced116940
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Dec 27 19:38:33 2021 +0500

    leaflet: Fix notify order when starting a swipe
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/359

 src/adw-leaflet.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index a08b61d3..b3e73800 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -1456,9 +1456,11 @@ prepare_cb (AdwSwipeTracker        *tracker,
 
     if (page) {
       self->child_transition.is_gesture_active = TRUE;
-      set_visible_child (self, page);
 
+      g_object_freeze_notify (G_OBJECT (self));
+      set_visible_child (self, page);
       set_child_transition_running (self, TRUE);
+      g_object_thaw_notify (G_OBJECT (self));
     }
   }
 }


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