Builder4/WindowLeftTree.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 2 Sep 2014 09:44:45 +0000 (17:44 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Sep 2014 09:44:45 +0000 (17:44 +0800)
Builder4/WindowLeftTree.js
Builder4/WindowLeftTree.vala

Builder4/WindowLeftTree.bjs
Builder4/WindowLeftTree.js
Builder4/WindowLeftTree.vala

index ae3de42..ce08d97 100644 (file)
                         },
                         {
                             "listeners": {
-                                "activate": "  () => {\n\n     var name = DialogSaveModule.singleton().show(\n            (Gtk.Window) _this.el.get_toplevel (), \n            _this.model.file.project(), \n            _this.getActiveElement()\n     );\n     if (name.length < 1) {\n            return;\n  \n     }\n     \n    \n}"
+                                "activate": "  () => {\n\n     var name = DialogSaveModule.singleton().show(\n            (Gtk.Window) _this.el.get_toplevel (), \n            _this.model.file.project(), \n            _this.getActiveElement()\n     );\n     if (name.length < 1) {\n            return;\n  \n     }\n     _this.getActiveElement().props.set(\"* xinclude\", name);\n     \n    \n}"
                             },
                             "label": "Save as Module",
                             "pack": "add",
index ab63fa4..ccea0fc 100644 (file)
@@ -1126,6 +1126,7 @@ WindowLeftTree=new XObject({
                                     return;
                           
                              }
+                             _this.getActiveElement().props.set("* xinclude", name);
                              
                             
                         }
index 94be0b2..dcc3408 100644 (file)
@@ -1295,6 +1295,7 @@ public class Xcls_WindowLeftTree : Object
                         return;
               
                  }
+                 _this.getActiveElement().props.set("* xinclude", name);
                  
                 
             } );