src/Builder4/EditProject.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 09:06:54 +0000 (17:06 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 09:06:54 +0000 (17:06 +0800)
src/Builder4/EditProject.vala

src/Builder4/EditProject.bjs
src/Builder4/EditProject.vala

index bd4fe08..dc2ece8 100644 (file)
        "items" : [
         {
          "label" : "Project type :",
-         "* pack" : "pack_start,false,true,3",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,true,3",
          "$ xns" : "Gtk"
         },
         {
          "| string getValue" : " () {\n     var ix = this.el.get_active();\n        if (ix < 0 ) {\n            return \"\";\n        }\n        switch(ix) {\n            case 0:\n                return \"Roo\";\n            case 1:\n                return \"Gtk\";\n        }\n        return \"\";\n}\n",
          "id" : "xtype",
-         "| setValue" : " (v)    {\n        var el = this.el;\n        el.set_active(-1);\n        \n        for (var i =0;i < this.data.length; i++ ) {\n            if (v == this.data.nth_datA(i)) {\n                el.set_active(ix);\n                return false;\n            }\n        }\n    }",
-         "* init" : " this.el.add_attribute(_this.cellrender.el , \"markup\", 1 );  \n \n",
+         "* init" : " this.el.add_attribute(_this.cellrender.el , \"markup\", 1 );  \n \n ",
          "xtype" : "ComboBox",
          "* pack" : "pack_end,true,true,3",
          "$ xns" : "Gtk",
+         "| void setValue" : " (v)    {\n        var el = this.el;\n        el.set_active(-1);\n        \n        for (var i =0;i < this.data.length; i++ ) {\n            if (v == this.data.nth_datA(i)) {\n                el.set_active(ix);\n                return false;\n            }\n        }\n    }",
          "items" : [
           {
            "id" : "cellrender",
-           "xtype" : "CellRendererText",
            "* pack" : "pack_start,true",
+           "xtype" : "CellRendererText",
            "$ xns" : "Gtk"
           },
           {
            "id" : "model",
-           "* pack" : "set_model",
            "xtype" : "ListStore",
+           "* pack" : "set_model",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Cancel",
-     "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,0",
      "$ xns" : "Gtk"
     }
    ]
index 4ccf0ba..5bb0ac1 100644 (file)
@@ -229,7 +229,7 @@ public class EditProject : Object
                 }
                 return "";
         }
-        public setValue (v)    {
+        public void setValue (v)    {
                 var el = this.el;
                 el.set_active(-1);