X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DependTree%2FWindow.js;h=e6f2d1256d806c9bbadd9186db4a6b60df5b2429;hb=a33c2f259d02e5174c600665013992b64a0e91f4;hp=dd2bda30e009d495c994fb29995a8aa126e38cf0;hpb=89b864db2ef43a19456f4b59a36dbd1c55c0a09e;p=app.Builder.js diff --git a/DependTree/Window.js b/DependTree/Window.js index dd2bda30e..e6f2d1256 100644 --- a/DependTree/Window.js +++ b/DependTree/Window.js @@ -32,7 +32,7 @@ Window=new XObject({ var i =0; for (var c in this.data.methods) { i++; - ls.append( [ c , true , i > 10]); + ls.append( [ c , true , i > 10 ? true : false]); }; @@ -75,8 +75,9 @@ Window=new XObject({ this.items[0].init(); this.list = this.items[0]; this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null); + this.el.set_visible_column(2); XObject.prototype.init.call(this); - this.el.set_visible_column(2); + }, items : [ { @@ -146,21 +147,36 @@ Window=new XObject({ xtype: Gtk.TreeView, items : [ { - xtype: Gtk.ListStore, - id : "method-list-store", - init : function() - { - XObject.prototype.init.call(this); - this.el.set_column_types ( 6, [ - GObject.TYPE_STRING, - GObject.TYPE_BOOLEAN, - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING - ] ); - - } + xtype: Gtk.TreeModelFilter, + init : function() { + this.items[0].pack = false; + this.items[0].init(); + this.list = this.items[0]; + this.el = new Gtk.TreeModelFilter.c_new(this.items[0].el, null); + this.el.set_visible_column(2); + XObject.prototype.init.call(this); + + }, + items : [ + { + xtype: Gtk.ListStore, + id : "method-list-store", + init : function() + { + XObject.prototype.init.call(this); + this.el.set_column_types ( 6, [ + GObject.TYPE_STRING, + GObject.TYPE_BOOLEAN, + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING + ] ); + + }, + pack : false + } + ] }, { xtype: Gtk.TreeViewColumn,