[libhandy/wip/exalm/oops: 5/5] carousel-box: Don't animate child removal during destruction



commit 0d0e62a72c17d1fc6894e63d8e40c95d668e1827
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Jun 2 09:45:00 2020 +0200

    carousel-box: Don't animate child removal during destruction

 src/hdy-carousel-box.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/hdy-carousel-box.c b/src/hdy-carousel-box.c
index 33c5f7b1..610cb4bd 100644
--- a/src/hdy-carousel-box.c
+++ b/src/hdy-carousel-box.c
@@ -949,7 +949,8 @@ hdy_carousel_box_remove (GtkContainer *container,
 
   info->widget = NULL;
 
-  animate_child (self, info, 0, self->reveal_duration);
+  if (!gtk_widget_in_destruction (GTK_WIDGET (container)))
+    animate_child (self, info, 0, self->reveal_duration);
 
   g_signal_emit (self, signals[SIGNAL_PAGE_REMOVED], 0, index);
 


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