src/Builder4/RooProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 22 Sep 2017 06:46:24 +0000 (14:46 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Sep 2017 06:46:24 +0000 (14:46 +0800)
src/Builder4/RooProjectSettings.vala

src/Builder4/RooProjectSettings.bjs
src/Builder4/RooProjectSettings.vala

index 0d4f044..571bb65 100644 (file)
                "| void loadData" : "  () {\n\t\n\t\n  \n    this.el.clear();                                    \n    \n    if (!(_this.project is Project.Gtk)) {\n\t\treturn;\n\t}\n    var sd = ((Project.Gtk)_this.project).sourcedirs();\n    \n    Gtk.TreeIter iter;\n    var el = this.el;\n    \n   /// el.append(out iter);\n    \n     \n   // el.set_value(iter, 0, \"\");\n   // el.set_value(iter, 1, \"aaa  - Just add Element - aaa\");\n\n//    el.append(out iter);\n\n    \n//    el.set_value(iter, 0, \"\");\n  //  el.set_value(iter, 1, \"-- select a directoyr --\");\n    //_this.build_module.el.set_active_iter(iter);\n    \n    for (var i = 0; i < sd.length;i++) {\n    \n\n        el.append(out iter);\n        \n        el.set_value(iter, 0, sd[i]);\n        el.set_value(iter, 1, sd[i]);\n        \n        //if (data.get(i) == cur) {\n        //    _this.build_module.el.set_active_iter(iter);\n       // }\n        \n    }\n  //  this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING);          \n                                     \n}\n"
               }
              ]
+            },
+            {
+             "label" : "filename",
+             "id" : "path",
+             "xalign" : 0,
+             "* pack" : "attach,0,0,1,1",
+             "xtype" : "Label",
+             "gint margin" : 3,
+             "$ xns" : "Gtk"
             }
            ]
           },
-          {
-           "label" : "filename",
-           "id" : "path",
-           "xalign" : 0,
-           "* pack" : "attach,0,0,1,1",
-           "xtype" : "Label",
-           "gint margin" : 3,
-           "$ xns" : "Gtk"
-          },
           {
            "* pack" : "pack_start,true,true,0",
            "xtype" : "ScrolledWindow",
index 6e4947d..b60cb4f 100644 (file)
@@ -262,12 +262,9 @@ public class Xcls_RooProjectSettings : Object
             var child_4 = new Xcls_grid( _this );
             child_4.ref();
             this.el.pack_start (  child_4.el , false,false,4 );
-            var child_5 = new Xcls_path( _this );
+            var child_5 = new Xcls_ScrolledWindow27( _this );
             child_5.ref();
-            this.el.attach (  child_5.el , 0,0,1,1 );
-            var child_6 = new Xcls_ScrolledWindow27( _this );
-            child_6.ref();
-            this.el.pack_start (  child_6.el , true,true,0 );
+            this.el.pack_start (  child_5.el , true,true,0 );
         }
 
         // user defined functions
@@ -623,6 +620,9 @@ public class Xcls_RooProjectSettings : Object
             var child_3 = new Xcls_dir( _this );
             child_3.ref();
             this.el.attach (  child_3.el , 1,8,1,1 );
+            var child_4 = new Xcls_path( _this );
+            child_4.ref();
+            this.el.attach (  child_4.el , 0,0,1,1 );
         }
 
         // user defined functions
@@ -973,7 +973,6 @@ public class Xcls_RooProjectSettings : Object
     }
 
 
-
     public class Xcls_path : Object
     {
         public Gtk.Label el;
@@ -999,6 +998,7 @@ public class Xcls_RooProjectSettings : Object
         // user defined functions
     }
 
+
     public class Xcls_ScrolledWindow27 : Object
     {
         public Gtk.ScrolledWindow el;