Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 30 Oct 2014 10:25:53 +0000 (18:25 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 30 Oct 2014 10:25:53 +0000 (18:25 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index 5324b0d..63b9909 100644 (file)
@@ -7,7 +7,7 @@
     "modOrder" : "",
     "items" : [
         {
-            "| void show" : "(Project.Gtk project) {\n\n    this.project=  project;\n\n}\n",
+            "| void show" : "(Project.Gtk project) {\n\n    this.project=  project;\n\n    this.compile_flags.el.text = \"\";\n    this.default_packages_tree_store.el.clear();\n    \n    if (this.project.compilegroups.has_key(\"default\")) {\n        var def = this.project.compilegroups.get(\"default\");\n        this.compile_flags.el.text = def.compile_flags;\n    }\n   \n\n\n}\n",
             "xtype" : "VBox",
             "string id" : "ValaProjectSettings",
             "# Gtk.Project project" : "null",
index 303800e..930c158 100644 (file)
@@ -43,6 +43,16 @@ public class ValaProjectSettings : Object
     
         this.project=  project;
     
+        this.compile_flags.el.text = "";
+        this.default_packages_tree_store.el.clear();
+        
+        if (this.project.compilegroups.has_key("default")) {
+            var def = this.project.compilegroups.get("default");
+            this.compile_flags.el.text = def.compile_flags;
+        }
+       
+    
+    
     }
     public class Xcls_Notebook2 : Object 
     {