+ init : function() {
+ print ("Actor init");
+ if (!this.items.length) {
+ print ("Actor does not have any children");
+ return;
+ }
+ var child = this.items[0];
+ child.init();
+ child.pack = false;
+ child.parent = this;
+ //var contents = new Gtk.Button({ label: 'test' });
+
+ // print(JSON.stringify(this.items));
+ child.el.show();
+
+ this.el = new GtkClutter.Actor.with_contents ( child.el) ;
+
+ XObject.prototype.init.call(this);
+ this.el.show_all();
+ }