[seed] ClutterPad: Remove actors from stage each evaluation.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] ClutterPad: Remove actors from stage each evaluation.
- Date: Wed, 13 May 2009 08:48:41 -0400 (EDT)
commit 5daa027c275ae0db93530b5036d0281200976cb7
Author: Tim Horton <hortont svn gnome org>
Date: Wed May 13 08:42:02 2009 -0400
ClutterPad: Remove actors from stage each evaluation.
---
examples/clutter-pad.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/examples/clutter-pad.js b/examples/clutter-pad.js
index 2dd7996..ea324e2 100755
--- a/examples/clutter-pad.js
+++ b/examples/clutter-pad.js
@@ -66,6 +66,11 @@ function new_file()
// TODO: cleanse the stage (or make a new one!) each time around...
+ var children = stage.get_children();
+
+ for(var id in children)
+ stage.remove_actor(children[id]);
+
//if(gtkstage)
//pane.remove(gtkstage);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]