2 //<Script type="Text/javascript">
4 XObject = imports.XObject.XObject
6 GObject = imports.gi.GObject;
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..
11 GtkTreeViewColumn = XObject.define(
13 XObject.call(this, cfg);
14 // this is an example...
22 // this is done before pack?
23 this.el = new Gtk.TreeViewColumn();
24 this.parent.el.append_column(this.el);
26 XObject.prototype.init.call(this);
28 if (this.items.length) {
29 this.el.add_attribute(this.items[0].el , 'markup', 4 );