"Project.Gtk project" : "null",
"Project.GtkValaSettings? selected_target" : "null",
"Xcls_MainWindow window" : "null",
+ "bool cg_loading" : false,
"bool done" : false,
"bool modal" : true,
"items" : [
"bind" : [
"(listitem) => {",
" ",
- "\tvar lbl = (Gtk.Box) ((Gtk.ListItem)listitem).get_child();",
+ "\tvar lbl = (Gtk.Label) ((Gtk.ListItem)listitem).get_child();",
"\t ",
"\tvar item = (Project.VapiSelection) ((Gtk.ListItem)listitem).get_item();",
"",
"\tvar jr = (JsRender.JsRender) lr.get_item();",
"\t//GLib.debug(\"change %s to %s\", lbl.label, np.name);",
"",
- "\t",
+ "\t//btn.active = jr.compile_group_selected;",
"\t ",
" \tjr.bind_property(\"compile_group_selected\",",
" btn, \"active\",",
- " GLib.BindingFlags.SYNC_CREATE); ",
+ " GLib.BindingFlags.BIDIRECTIONAL); ",
" \t// bind image...",
" \t",
"}"
"\t((Gtk.ListItem)listitem).set_child(btn);",
"\t",
"\tbtn.toggled.connect(() => {",
- "\t ",
+ "\t \tif (_this.cg_loading) {",
+ "\t \t\treturn;",
+ " \t\t}",
"\t\tvar lr = (Gtk.TreeListRow)((Gtk.ListItem)listitem).get_item();",
"\t\tvar jr = (JsRender.JsRender) lr.get_item();",
"\t\tjr.compile_group_selected = btn.active;",
"\t ",
"\t GLib.debug(\"loading dirs into project list\");",
"\t cg.loading_ui = true;",
- "\t ",
+ "\t _this.cg_loading = true;",
"",
"\t _this.treeview.el.set_model(new Gtk.SingleSelection(null));",
"\t _this.project.loadDirsIntoStore(_this.treemodel.el);",
" \t _this.treeview.el.set_model(_this.treeselmodel.el);",
"\t ",
"\t cg.loading_ui = false;",
+ "\t ",
+ "\t _this.cg_loading = false;",
"\t GLib.debug(\"Set name to %s\", cg.name);",
"\t ",
" \t_this.build_name.el.buffer.set_text(cg.name.data);",
" ",
" ",
"\t_this.build_execute_args.el.buffer.set_text( cg.execute_args.data );",
- "",
" ",
"}",
""
"bind" : [
"(listitem) => {",
" ",
- "\tvar lbl = (Gtk.Box) ((Gtk.ListItem)listitem).get_child();",
+ "\tvar lbl = (Gtk.Label) ((Gtk.ListItem)listitem).get_child();",
"\t ",
"\tvar item = (Project.GtkValaSettings) ((Gtk.ListItem)listitem).get_item();",
"",