NewBranch.bjs
[gitlive] / NewBranch.bjs
index c93cc06..a0f1878 100644 (file)
            },
            "* ctor" : "new Gtk.ComboBox.with_entry()",
            "id" : "project_id",
-           "| string selectedProjectId" : "() {\n\tGtk.TreeIter iter;\n\tValue val1;\n \n \n\tthis.el.get_active_iter (out iter);\n\t_this.prmodel.el.get_value (iter, 0, out val1);\n \n\n\treturn  (string) val1;\n\t\n\t\n\t\n\t\n}\n",
+           "| string selectedProjectId" : "() {\n\tGtk.TreeIter iter;\n\tValue val1;\n \n \n\tthis.el.get_active_iter (out iter);\n\t_this.tprmodel.el.get_value (iter, 0, out val1);\n \n\n\treturn  (string) val1;\n\t\n\t\n\t\n\t\n}\n",
            "* init" : "this.el.set_entry_text_column(1);",
            "* pack" : "attach_defaults,0,1,1,2",
            "xtype" : "ComboBox",
            "$ xns" : "Gtk",
            "items" : [
             {
-             "id" : "prcellrenderer",
+             "id" : "tprcellrenderer",
              "xtype" : "CellRendererText",
              "* pack" : "pack_start,true",
              "$ xns" : "Gtk"
             },
             {
              "| void loadProjects" : "  (string id) {\n\n    \n    _this.project_id.loading = true;\n\n    this.el.clear();                                    \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, \"-- select a project --\");\n    if (id == \"\") {\n\t    _this.project_id.el.set_active_iter(iter);\n    }\n\n    foreach(var project in RooProject.projects()) {\n    \n        el.append(out iter);\n        \n        el.set_value(iter, 0, project.id);\n        el.set_value(iter, 1,  project.name );\n        if (id == project.id) {\n\t \t   _this.project_id.el.set_active_iter(iter);\n\t    }   \n        \n    }\n    \n    _this.project_id.loading = false;\n     //this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING);          \n                                     \n}\n",
-             "id" : "prmodel",
+             "id" : "tprmodel",
              "* pack" : "set_model",
              "xtype" : "ListStore",
              "$ columns" : "typeof(string),typeof(string)",