2 //<Script type="Text/javascript">
4 XObject = imports.XObject.XObject
5 GtkClutter = imports.gi.GtkClutter;
8 // children are not added at init / but at show stage..
9 // listener is added on show..
10 // we should really add a hock to destroy it..
14 pack : function(parent, item)
16 print('actor pack: ' + XObject.type(parent.xtype));
21 onConstruct : function() {
22 if (!this.items.length) {
23 XObject.fatal("Actor does not have any children");
27 this.items[0].pack = false;
33 if (!this.items.length) {
34 print ("Actor does not have any children");
37 var child = this.items[0];
41 //var contents = new Gtk.Button({ label: 'test' });
43 // print(JSON.stringify(this.items));
46 this.el = new GtkClutter.Actor.with_contents ( child.el) ;
48 XObject.prototype.init.call(this);