Builder4/ValaProjectSettings.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 12:17:03 +0000 (20:17 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Nov 2014 12:17:03 +0000 (20:17 +0800)
Builder4/ValaProjectSettings.vala

Builder4/ValaProjectSettings.bjs
Builder4/ValaProjectSettings.vala

index 6146c21..41d74be 100644 (file)
                                                     "items" : [
                                                         {
                                                             "listeners" : {
-                                                                "edited" : "  (path, newtext) => {\n     \n     Gtk.TreeIter  iter;\n        _this.targets_tree_store.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n       GLib.Value gval;\n        _this.model.el.get_value(iter,0, out gval);\n        var oldval = (string)gval;\n       if (oldval == newtext) {\n          return;\n        }\n         var cg = _this.project.compilegroups.get(oldval);\n        cg.name = newtext;\n        _this.project.compilegroups.unset(oldval);\n        _this.project.compilegroups.set(newtext, cg);\n   \n  }"
+                                                                "edited" : "  (path, newtext) => {\n     \n     Gtk.TreeIter  iter;\n        _this.targets_tree_store.el.get_iter(out iter, new Gtk.TreePath.from_string(path));\n       GLib.Value gval;\n        _this.model.el.get_value(iter,0, out gval);\n        var oldval = (string)gval;\n       if (oldval == newtext) {\n          return;\n        }\n         var cg = _this.project.compilegroups.get(oldval);\n        cg.name = newtext;\n        _this.project.compilegroups.unset(oldval);\n        _this.project.compilegroups.set(newtext, cg);\n    _this.targets_tree_store.load();\n  }"
                                                             },
                                                             "id" : "targets_render",
                                                             "xtype" : "CellRendererText",
index 925eaea..ddfb273 100644 (file)
@@ -1221,7 +1221,7 @@ public class ValaProjectSettings : Object
                     cg.name = newtext;
                     _this.project.compilegroups.unset(oldval);
                     _this.project.compilegroups.set(newtext, cg);
-               
+                _this.targets_tree_store.load();
               });
         }