2 //<Script type="Text/javascript">
4 XObject = imports.XObject.XObject
6 GObject = imports.gi.GObject;
10 // children are not added at init / but at show stage..
11 // listener is added on show..
12 // we should really add a hock to destroy it..
13 GtkListStore = XObject.define(
15 XObject.call(this, cfg);
16 // this is an example...
24 XObject.prototype.init.call(this);
25 this.el.set_column_types ( 6, [
35 append : function( values ) {
36 var iter = new Gtk.TreeIter();
38 for (var i = 0; i < values.length; i++) {
39 this.el.set_value(iter,i,values[i]);