Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 3 Nov 2014 09:24:50 +0000 (17:24 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Nov 2014 09:24:50 +0000 (17:24 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index e6762b8..4376c19 100644 (file)
                     "items" : [
                         {
                             "id" : "label_global",
-                            "xtype" : "Label",
                             "* pack" : false,
+                            "xtype" : "Label",
                             "$ xns" : "Gtk",
                             "utf8 label" : "Global"
                         },
                         {
                             "id" : "label_targets",
-                            "* pack" : false,
                             "xtype" : "Label",
+                            "* pack" : false,
                             "$ xns" : "Gtk",
                             "utf8 label" : "Targets"
                         },
@@ -46,8 +46,8 @@
                                 },
                                 {
                                     "id" : "compile_flags",
-                                    "xtype" : "Entry",
                                     "* pack" : "pack_start,false,false,0",
+                                    "xtype" : "Entry",
                                     "$ xns" : "Gtk"
                                 },
                                 {
                                             "items" : [
                                                 {
                                                     "id" : "default_packages_tree_store",
-                                                    "* pack" : "set_model",
                                                     "xtype" : "ListStore",
+                                                    "* pack" : "set_model",
                                                     "$ n_columns" : 2,
-                                                    "| void load" : "(Gee.ArrayList<string> items) {\n \n\n\n    var pal = (Palete.Gtk) Palete.factory(\"Gtk\");\n    //var pkgs = pal.packages();\n    \n\n    Gtk.TreeIter citer;\n\n    for(var i =0 ; i < items.size; i++) {\n         this.el.append(out citer);   \n         \n        this.el.set_value(citer, 0,   items.get(i) ); // title \n        this.el.set_value(citer, 1,   items.get(i) );\n    }\n    this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n    \n}\n",
+                                                    "| void load" : "(Gee.ArrayList<string> items) {\n \n\n\n    var pal = (Palete.Gtk) Palete.factory(\"Gtk\");\n    var pkgs = pal.packages();\n    \n\n    Gtk.TreeIter citer;\n\n    for(var i =0 ; i < items.size; i++) {\n         this.el.append(out citer);   \n         \n        this.el.set_value(citer, 0,   items.get(i) ); // title \n        this.el.set_value(citer, 1,   items.get(i) );\n    }\n    this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n    \n}\n",
                                                     "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
                                                     "$ xns" : "Gtk"
                                                 },
@@ -86,8 +86,8 @@
                                                     "items" : [
                                                         {
                                                             "id" : "packages_render",
-                                                            "* pack" : "pack_start,false",
                                                             "xtype" : "CellRendererText",
+                                                            "* pack" : "pack_start,false",
                                                             "$ xns" : "Gtk"
                                                         }
                                                     ]
                                                     "items" : [
                                                         {
                                                             "id" : "packages_render_use",
-                                                            "* pack" : "pack_start,false",
                                                             "xtype" : "CellRendererToggle",
+                                                            "* pack" : "pack_start,false",
                                                             "$ xns" : "Gtk"
                                                         }
                                                     ]
                                             "items" : [
                                                 {
                                                     "id" : "default_directory_tree_store",
-                                                    "* pack" : "set_model",
                                                     "xtype" : "ListStore",
+                                                    "* pack" : "set_model",
                                                     "$ n_columns" : 2,
                                                     "| void load" : "(Gee.ArrayList<string> items) {\n \n \n    Gtk.TreeIter citer;\n\n    for(var i =0 ; i < items.size; i++) {\n         this.el.append(out citer);   \n         \n        this.el.set_value(citer, 0,   items.get(i) ); // title \n        this.el.set_value(citer, 1,   items.get(i) );\n    }\n    this.el.set_sort_column_id(0,Gtk.SortType.ASCENDING);\n    \n}\n",
                                                     "$ columns" : "    typeof(string),  // 0 key type\n     typeof(string) // ??\n     ",
                                                     "items" : [
                                                         {
                                                             "id" : "directory_render",
-                                                            "* pack" : "pack_start,false",
                                                             "xtype" : "CellRendererText",
+                                                            "* pack" : "pack_start,false",
                                                             "$ xns" : "Gtk"
                                                         }
                                                     ]
                         },
                         {
                             "gint position" : 300,
-                            "xtype" : "HPaned",
                             "* pack" : "append_page,_this.label_targets.el",
+                            "xtype" : "HPaned",
                             "$ xns" : "Gtk",
                             "items" : [
                                 {
                                     "* init" : "{  \nthis.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n\n}\n",
-                                    "xtype" : "ScrolledWindow",
                                     "* pack" : "add1",
+                                    "xtype" : "ScrolledWindow",
                                     "$ xns" : "Gtk",
                                     "items" : [
                                         {
                                                     "items" : [
                                                         {
                                                             "id" : "targets_render",
-                                                            "xtype" : "CellRendererText",
                                                             "* pack" : "pack_start,false",
+                                                            "xtype" : "CellRendererText",
                                                             "$ xns" : "Gtk"
                                                         }
                                                     ]
                                                             "items" : [
                                                                 {
                                                                     "id" : "files_render",
-                                                                    "* pack" : "pack_start,false",
                                                                     "xtype" : "CellRendererText",
+                                                                    "* pack" : "pack_start,false",
                                                                     "$ xns" : "Gtk"
                                                                 }
                                                             ]
index 1b02570..68a61d9 100644 (file)
@@ -321,7 +321,7 @@ public class ValaProjectSettings : Object
         
         
             var pal = (Palete.Gtk) Palete.factory("Gtk");
-            //var pkgs = pal.packages();
+            var pkgs = pal.packages();
             
         
             Gtk.TreeIter citer;