From: Alan Knowles Date: Thu, 2 Dec 2010 11:22:49 +0000 (+0800) Subject: DependTree/Window.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=dc08da1af3280fbf7c605d36483f4a660739ec04 DependTree/Window.bjs --- diff --git a/DependTree/Window.bjs b/DependTree/Window.bjs index bec7c5ee9..126bc239c 100644 --- a/DependTree/Window.bjs +++ b/DependTree/Window.bjs @@ -110,6 +110,22 @@ "listeners": {} } ] + }, + { + "title": "Active", + "xtype": "TreeViewColumn", + "|xns": "Gtk", + "pack": false, + "items": [ + { + "listeners": { + "toggled": "function (self, path) {\n print(\"TOGGLE\");\n // this.list\n\n\n \n var old = this.list.getValue(path, 1);\n // print(JSON.stringify(old));\n this.list.setValue(path, 1, old ? false : true)\n \n \n \n \n}" + }, + "activatable": true, + "xtype": "CellRendererToggle", + "|xns": "Gtk" + } + ] } ] }