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




commit 14e45ae043bf7e95402d3472014a99a7478ea0cd
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]