DependTree/Window.bjs
[app.Builder.js] / DependTree / Window.js
index 4161241..4db53ad 100644 (file)
@@ -30,7 +30,7 @@ Window=new XObject({
             });
             var ls = this.get('class-list-store');
             for (var c in this.data.methods) {
-                ls.append( [ c ]);
+                ls.append( [ c , true ]);
             };
             
             
@@ -68,7 +68,20 @@ Window=new XObject({
                                     items : [
                                         {
                                             xtype: Gtk.ListStore,
-                                            id : "class-list-store"
+                                            id : "class-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.TreeViewColumn,
@@ -84,7 +97,13 @@ Window=new XObject({
                                             title : "Active",
                                             items : [
                                                 {
-                                                    xtype: Gtk.CellRendererToggle
+                                                    xtype: Gtk.CellRendererToggle,
+                                                    listeners : {
+                                                        toggled : function (self, path) {
+                                                            print("TOGGLE");
+                                                        }
+                                                    },
+                                                    activatable : true
                                                 }
                                             ]
                                         }