[gnome-nibbles/arnaudb/wip/gtk4: 40/40] Make death mostly work.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 40/40] Make death mostly work.
- Date: Tue, 16 Jun 2020 16:35:21 +0000 (UTC)
commit c7de75be5598834dea0b8a2d0e929e8c5d9a64bd
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]