[fractal/bilelmoussaoui/unparent] components: Unparent on dispose
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/bilelmoussaoui/unparent] components: Unparent on dispose
- Date: Thu, 31 Mar 2022 12:51:56 +0000 (UTC)
commit 20e14d95d610f8b0b589bcd51b28c06341dd12c1
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..1a1b62521 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]