[libhandy/wip/exalm/oops: 10/10] carousel-box: Don't animate child removal during destruction
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/oops: 10/10] carousel-box: Don't animate child removal during destruction
- Date: Tue, 2 Jun 2020 09:40:50 +0000 (UTC)
commit eb2f1503d9fbeeb90d8b2c160d82ac831ec746c3
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]