"items" : [
{
"listeners" : {
- "toggled" : "( path_string) => { \n\n\n\n var m = _this.files_tree_store.el;\n Gtk.TreeIter iter;\n Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);\n m.get_iter (out iter, path);\n GLib.Value val;\n m.get_value(iter, 3, out val);\n m.set_value(iter, 3, ((bool) val) ? false :true); \n \n // type.\n GLib.Value ftval; \n m.get_value(iter, 2, out ftval);\n var ftype = (string)ftval; \n \n // full name...\n GLib.Value fval; \n m.get_value(iter, 0, out fval);\n var fn = (string)fval;\n \n // what's the sleected target?\n // update the list..\n // if ftype is a dir == then toggle all the bellow.\n // if ftype is a file .. see if all the files in that directory are check and check the dir.\n return;\n var def = _this.project.compilegroups.get(\"_default_\");\n var items = def.packages;\n if ((bool)val) {\n // renive\n items.remove(fn);\n } else {\n items.add(fn);\n }\n \n}"
+ "toggled" : "( path_string) => { \n\n\n\n var m = _this.files_tree_store.el;\n Gtk.TreeIter iter;\n Gtk.TreePath path = new Gtk.TreePath.from_string (path_string);\n m.get_iter (out iter, path);\n GLib.Value val;\n m.get_value(iter, 3, out val);\n m.set_value(iter, 3, ((bool) val) ? false :true); \n \n // type.\n GLib.Value ftval; \n m.get_value(iter, 2, out ftval);\n var ftype = (string)ftval; \n \n // full name...\n GLib.Value fval; \n m.get_value(iter, 0, out fval);\n var fn = (string)fval;\n \n \n var cg = = _this.set_vbox.cgroup;\n // what's the sleected target?\n // update the list..\n // if ftype is a dir == then toggle all the bellow.\n // if ftype is a file .. see if all the files in that directory are check and check the dir.\n\n var items = def.packages;\n if ((bool)val) {\n // renive\n cg.sources.remove(fn);\n } else {\n cg.sources.add(fn);\n }\n \n}"
},
"id" : "files_render_use",
"* pack" : "pack_start,false",
m.get_value(iter, 0, out fval);
var fn = (string)fval;
+
+ var cg = = _this.set_vbox.cgroup;
// what's the sleected target?
// update the list..
// if ftype is a dir == then toggle all the bellow.
// if ftype is a file .. see if all the files in that directory are check and check the dir.
- return;
- var def = _this.project.compilegroups.get("_default_");
+
var items = def.packages;
if ((bool)val) {
// renive
- items.remove(fn);
+ cg.sources.remove(fn);
} else {
- items.add(fn);
+ cg.sources.add(fn);
}
});