Fix #8048 - context provider start work - fix meson build flag - project settings...
[roobuilder] / src / Builder4 / ValaProjectSettingsPopover.bjs
index 07634bc..6ec2fe8 100644 (file)
              "utf8 placeholder_text" : "eg. -g --valasrc $BASEDIR ",
              "xtype" : "Entry"
             },
+            {
+             "$ xns" : "Gtk",
+             "id" : "generate_meson",
+             "listeners" : {
+              "toggled" : [
+               "( ) => {",
+               "",
+               "\t_this.project.generate_meson = this.el.active;",
+               "}",
+               "\t"
+              ]
+             },
+             "string label" : "Generate Meson",
+             "xtype" : "CheckButton"
+            }
+           ],
+           "xtype" : "Box"
+          },
+          {
+           "$ xns" : "Gtk",
+           "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+           "int spacing" : 10,
+           "items" : [
             {
              "$ xns" : "Gtk",
              "Gtk.Align halign" : "Gtk.Align.START",
     "    //print(\"ValaProjectSettings show\\n\");",
     "    this.doneObj = doneObj;",
     "    this.project=  project;",
+    "    ",
+    "    this.project.loading = true;",
     "\t ",
     "    this.compile_flags.el.buffer.set_text(",
     "    \tproject.compile_flags.data",
     "\t  this.licence.el.buffer.set_text(",
     "    \tproject.licence.data",
     "\t); ",
-    "    project.loadVapiIntoStore(_this.vapimodel.el);",
-    "     GLib.Timeout.add(500, () => {",
-    " \t\t this.vapi_scroll.el.vadjustment.value  = 0;\t ",
-    "\t     return false;",
-    "     });",
-    "    ",
-    "   ",
+    "\t",
+    "\t",
+    "\t",
+    "\tGLib.Idle.add(() => {",
+    "\t\tproject.loadVapiIntoStore(_this.vapimodel.el);",
+    "\t\t GLib.Timeout.add(500, () => {",
+    "\t \t\t this.vapi_scroll.el.vadjustment.value  = 0;\t ",
+    "\t\t\t return false;",
+    "\t \t});",
+    " \t \tproject.loadTargetsIntoStore(this.target_model.el);",
+    " \t\t_this.target_sel.el.selected = Gtk.INVALID_LIST_POSITION;",
+    "\t\t_this.target_sel.selectTarget(null);",
+    "\t\t this.project.loading = false;",
+    "\t \treturn false;",
+    " \t});",
+    "\t\t",
+    "   this.generate_meson.el.active = this.project.generate_meson;",
     " \t",
-    " \tproject.loadTargetsIntoStore(this.target_model.el);",
+    "",
     "\t",
-    " \t_this.target_sel.el.selected = Gtk.INVALID_LIST_POSITION;",
-    "\t_this.target_sel.selectTarget(null);",
+    " ",
     "//\tGtk.Allocation rect;",
     "\t//btn.get_allocation(out rect);",
     " //   this.el.set_pointing_to(rect);",
-    " this.el.application = pwin.application; // ??? make it modal?",
-    "\t this.el.set_transient_for(pwin);",
+    " \tthis.el.application = pwin.application; // ??? make it modal?",
+    "\tthis.el.set_transient_for(pwin);",
     "\t ",
     "\t// window + header?",
     "\t// print(\"SHOWALL - POPIP\\n\");",