[libadwaita/wip/exalm/new-glib: 11/16] carousel: Unparent children in dispose()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/new-glib: 11/16] carousel: Unparent children in dispose()
- Date: Wed, 3 Nov 2021 00:41:29 +0000 (UTC)
commit 4e7ceb90b22ba4cb65c64e791c753b807bece371
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 2 23:59:39 2021 +0500
carousel: Unparent children in dispose()
src/adw-carousel.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/adw-carousel.c b/src/adw-carousel.c
index 6a017cdc..5cfac2d4 100644
--- a/src/adw-carousel.c
+++ b/src/adw-carousel.c
@@ -735,6 +735,12 @@ adw_carousel_dispose (GObject *object)
{
AdwCarousel *self = ADW_CAROUSEL (object);
+ while (self->children) {
+ ChildInfo *info = self->children->data;
+
+ adw_carousel_remove (self, info->widget);
+ }
+
g_clear_object (&self->tracker);
g_clear_handle_id (&self->scroll_timeout_id, g_source_remove);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]