Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Oct 2014 10:03:41 +0000 (18:03 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Oct 2014 10:03:41 +0000 (18:03 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index ab38fe2..acd4420 100644 (file)
                                     "$ xns" : "Gtk",
                                     "items" : [
                                         {
+                                            "id" : "set_tree",
                                             "xtype" : "TreeView",
-                                            "string id" : "set_tree",
                                             "$ xns" : "Gtk",
                                             "items" : [
                                                 {
                                                 },
                                                 {
                                                     "utf8 title" : "name",
-                                                    "* init" : " this.el.add_attribute(_this.directory_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.directory_render.el , \"text\", 1 );\n  ",
+                                                    "* init" : " this.el.add_attribute(_this.targets_render.el , \"markup\", 2 );\n this.el.add_attribute(_this.targets_render.el , \"text\", 1 );\n  ",
                                                     "* pack" : "append_column",
                                                     "xtype" : "TreeViewColumn",
                                                     "gboolean resizable" : true,
index cdb6fdf..760104c 100644 (file)
@@ -16,6 +16,7 @@ public class ValaProjectSettings : Object
     public Xcls_label_targets label_targets;
     public Xcls_packages_render packages_render;
     public Xcls_directory_render directory_render;
+    public Xcls_set_tree set_tree;
     public Xcls_targets_render targets_render;
 
         // my vars (def)
@@ -554,6 +555,7 @@ public class ValaProjectSettings : Object
         public Xcls_set_tree(ValaProjectSettings _owner )
         {
             _this = _owner;
+            _this.set_tree = this;
             this.el = new Gtk.TreeView();
 
             // my vars (dec)
@@ -617,8 +619,8 @@ public class ValaProjectSettings : Object
 
             // init method 
 
-            this.el.add_attribute(_this.directory_render.el , "markup", 2 );
-             this.el.add_attribute(_this.directory_render.el , "text", 1 );        }
+            this.el.add_attribute(_this.targets_render.el , "markup", 2 );
+             this.el.add_attribute(_this.targets_render.el , "text", 1 );        }
 
         // user defined functions 
     }