[fractal/bilelmoussaoui/unparent] Components: Unparent on dispose




commit 131ab6ce7799e75d78460062acf5586fae626132
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Thu Mar 31 14:51:41 2022 +0200

    Components: Unparent on dispose

 src/components/drag_overlay.rs | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/components/drag_overlay.rs b/src/components/drag_overlay.rs
index 93098dd10..079c9e72e 100644
--- a/src/components/drag_overlay.rs
+++ b/src/components/drag_overlay.rs
@@ -97,6 +97,10 @@ mod imp {
 
             self.revealer.set_child(Some(&self.status));
         }
+
+        fn dispose(&self, _obj: &Self::Type) {
+            self.overlay.unaprent();
+        }
     }
     impl WidgetImpl for DragOverlay {}
     impl BinImpl for DragOverlay {}


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