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

index 22674e1..302f843 100644 (file)
@@ -13,6 +13,8 @@ console = imports.console;
 XObject = imports.XObject.XObject;
 Window=new XObject({
     xtype: Gtk.Window,
+    default_height : 500,
+    default_width : 600,
     init : function() {
         XObject.prototype.init.call(this);
         this.el.show_all();
@@ -29,6 +31,14 @@ Window=new XObject({
                             items : [
                                 {
                                     xtype: Gtk.ListStore
+                                },
+                                {
+                                    xtype: Gtk.TreeViewColumn,
+                                    items : [
+                                        {
+                                            xtype: Gtk.CellRendererText
+                                        }
+                                    ]
                                 }
                             ]
                         }