DependTree/Window.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 09:22:50 +0000 (17:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 09:22:50 +0000 (17:22 +0800)
DependTree/Window.js

index ca6b4de..7dc347c 100644 (file)
@@ -19,6 +19,11 @@ Window=new XObject({
             var BuildLists = imports['BuildLists.js'].BuildLists;
             this.data = new BuildLists();
             print(JSON.stringify(this.data.allmethods, null,4));
+            
+            var ls = this.get('method-list-store');
+            this.data.allmethods.forEach(function(v) {
+                ls.append( [ v ]);
+            });
         }
     },
     default_height : 500,
@@ -82,7 +87,8 @@ Window=new XObject({
                             xtype: Gtk.TreeView,
                             items : [
                                 {
-                                    xtype: Gtk.ListStore
+                                    xtype: Gtk.ListStore,
+                                    id : "method-list-store"
                                 },
                                 {
                                     xtype: Gtk.TreeViewColumn,