Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 11:22:46 +0000 (19:22 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 11:22:46 +0000 (19:22 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index b55c722..31711e6 100644 (file)
                                         {
                                             "id" : "targets_tree",
                                             "xtype" : "TreeView",
+                                            "* pack" : "add",
                                             "$ xns" : "Gtk",
                                             "items" : [
                                                 {
+                                                    "id" : "targets_tree_store",
                                                     "* pack" : "set_model",
                                                     "xtype" : "ListStore",
                                                     "$ n_columns" : 2,
index 811bf23..945bbe6 100644 (file)
@@ -23,6 +23,7 @@ public class ValaProjectSettings : Object
     public Xcls_directory_render directory_render;
     public Xcls_default_directory_menu default_directory_menu;
     public Xcls_targets_tree targets_tree;
+    public Xcls_targets_tree_store targets_tree_store;
     public Xcls_targets_render targets_render;
     public Xcls_files_render files_render;
 
@@ -901,6 +902,7 @@ public class ValaProjectSettings : Object
             // set gobject values
             var child_0 = new Xcls_targets_tree( _this );
             child_0.ref();
+            this.el.add (  child_0.el  );
 
             // init method 
 
@@ -929,7 +931,7 @@ public class ValaProjectSettings : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_ListStore30( _this );
+            var child_0 = new Xcls_targets_tree_store( _this );
             child_0.ref();
             this.el.set_model (  child_0.el  );
             var child_1 = new Xcls_TreeViewColumn31( _this );
@@ -939,7 +941,7 @@ public class ValaProjectSettings : Object
 
         // user defined functions 
     }
-    public class Xcls_ListStore30 : Object 
+    public class Xcls_targets_tree_store : Object 
     {
         public Gtk.ListStore el;
         private ValaProjectSettings  _this;
@@ -948,9 +950,10 @@ public class ValaProjectSettings : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ListStore30(ValaProjectSettings _owner )
+        public Xcls_targets_tree_store(ValaProjectSettings _owner )
         {
             _this = _owner;
+            _this.targets_tree_store = this;
             this.el = new Gtk.ListStore( 2,     typeof(string),  // 0 key type
      typeof(string) // ??
       );