1 //<Script type="Text/javascript">
3 XObject = imports.XObject.XObject
4 GtkClutter = imports.gi.GtkClutter;
7 // children are not added at init / but at show stage..
8 // listener is added on show..
9 // we should really add a hock to destroy it..
10 GtkClutterEmbed = XObject.define(
12 XObject.call(this, cfg);
13 this.items.forEach( function(i) {
22 // add the event listener..
24 XObject.prototype.init.call(this);
26 print("----------Embed init");
27 this.addListener('show', function () {
28 print("-------EMBED - show");
29 var stage = this.el.get_stage();
30 //print(this.items.length);
31 this.items.forEach( function(e) {
33 stage.add_actor(e.el);