[gnome-nibbles/arnaudb/wip/gtk4: 56/62] Make cherry work.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 56/62] Make cherry work.
- Date: Fri, 19 Jun 2020 14:56:44 +0000 (UTC)
commit df246b4cf316df3061c3d95fc80e0f02a6dbee28
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Jun 16 18:10:37 2020 +0200
Make cherry work.
src/nibbles-view.vala | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/nibbles-view.vala b/src/nibbles-view.vala
index 94a24dd..5e3e55f 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -648,6 +648,17 @@ private class NibblesView : Widget
private void worm_tail_reduced_cb (Worm worm, int erase_size)
{
+ var actors = worm_actors.@get (worm);
+
+ for (int i = 0; i < erase_size; i++)
+ {
+ var tail_actor = actors.widgets.first ().data;
+ actors.widgets.remove (tail_actor);
+ tail_actor.hide ();
+ tail_actor.unparent ();
+ tail_actor.destroy ();
+ }
+
// float x, y;
// var group = new Clutter.Actor ();
// var worm_actors = worm_actors.@get (worm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]