[gnome-nibbles/arnaudb/wip/gtk4: 174/188] Make cherry work.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 174/188] Make cherry work.
- Date: Fri, 2 Oct 2020 15:55:22 +0000 (UTC)
commit 64d6b809abe2e093f99a0f635effd8c54fd20e05
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 abb54d0..d9c68fc 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -644,6 +644,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]