3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
10 GtkClutter = imports.gi.GtkClutter;
11 console = imports.console;
12 XObject = imports.XObject.XObject;
18 XObject.prototype.init.call(this);
23 xtype: GtkClutter.Embed,
26 var stage = this.el.get_stage();
27 print(this.items.length);
31 stage.add_actor(e.el);
39 xtype: GtkClutter.Actor,
45 var child = new XObject(this.items[0]);
48 //var contents = new Gtk.Button({ label: 'test' });
49 var contents = child.el;
51 print(JSON.stringify(this.items));
54 this.el = new GtkClutter.Actor.with_contents ( contents) ;
55 XObject.prototype.init.call(this);
61 clicked : function (self) {
62 Clutter = imports.gi.Clutter;
63 var animate = this.parent.el.animate(
64 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
71 animate.timeline.start();
83 xtype: GtkClutter.Actor,
89 var child = new XObject(this.items[0]);
92 //var contents = new Gtk.Button({ label: 'test' });
93 var contents = child.el;
94 print ("actor.items");
95 print(JSON.stringify(this.items));
98 this.el = new GtkClutter.Actor.with_contents ( contents) ;
99 XObject.prototype.init.call(this);
105 clicked : function (self) {
106 Clutter = imports.gi.Clutter;
107 var animate = this.parent.el.animate(
108 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
115 animate.timeline.start();
119 height_request : 100,
127 xtype: GtkClutter.Actor,
133 var child = new XObject(this.items[0]);
136 //var contents = new Gtk.Button({ label: 'test' });
137 var contents = child.el;
139 print(JSON.stringify(this.items));
142 this.el = new GtkClutter.Actor.with_contents ( contents) ;
143 XObject.prototype.init.call(this);
149 clicked : function (self) {
150 Clutter = imports.gi.Clutter;
151 var animate = this.parent.el.animate(
152 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
159 animate.timeline.start();
163 height_request : 100,
175 XObject.cache['/Window'] = Window;