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

index 26533b3..a48e0c3 100644 (file)
@@ -13,17 +13,20 @@ console = imports.console;
 XObject = imports.XObject.XObject;
 Window=new XObject({
     xtype: Gtk.Window,
+    listeners : {
+        show : function (self) {
+            print("SHOW");
+            var BuildLists = imports.BuildLists.BuildLists;
+            this.data = new BuildLists();
+            print(JSON.stringify(data.allmethods, null,4));
+        }
+    },
     default_height : 500,
     default_width : 600,
     init : function() {
         XObject.prototype.init.call(this);
         this.el.show_all();
     },
-    listeners : {
-        show : function (self) {
-        
-        }
-    },
     items : [
         {
             xtype: Gtk.HBox,