[gnome-nibbles/arnaudb/wip/gtk4: 57/62] Make death mostly work.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 57/62] Make death mostly work.
- Date: Fri, 19 Jun 2020 14:56:49 +0000 (UTC)
commit 31eb801e83b03669895e03d353be39641b95d5b2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Jun 16 18:26:52 2020 +0200
Make death mostly work.
src/nibbles-view.vala | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/nibbles-view.vala b/src/nibbles-view.vala
index 5e3e55f..55953f1 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -604,6 +604,16 @@ private class NibblesView : Widget
private void worm_died_cb (Worm worm)
{
+ var actors = worm_actors.@get (worm);
+
+ actors.hide ();
+ actors.unparent ();
+ actors.destroy ();
+
+ actors.widgets = new List<Widget> ();
+
+ worm_added_cb (worm);
+
// float x, y;
// var group = new Clutter.Actor ();
// var actors = worm_actors.@get (worm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]