Sample/Window.js
[app.Builder.js] / Sample / Editor.js
index 3be3ec7..6bad275 100644 (file)
@@ -8,19 +8,11 @@ GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
 GtkClutter = imports.gi.GtkClutter;
+Gdl = imports.gi.Gdl;
 console = imports.console;
 XObject = imports.XObject.XObject;
 Editor=new XObject({
     xtype: Gtk.Window,
-    save : function (self, event) {
-        if (!this.get('/Editor.RightEditor').save()) {
-            // no hiding with errors.
-            return true;
-        }
-        this.get('/Editor').activePath = false;
-        this.el.hide();
-        return true;
-    },
     listeners : {
         delete_event : function (self, event) {
             if (!this.get('/Editor.RightEditor').save()) {
@@ -47,8 +39,14 @@ Editor=new XObject({
     id : "EditorWindow",
     title : "Application Builder - Editor",
     width_request : 500,
-     : function() {
-        return this.get('/Editor.RightEditor').save();
+    save : function (self, event) {
+        if (!this.get('/Editor.RightEditor').save()) {
+            // no hiding with errors.
+            return true;
+        }
+        this.get('/Editor').activePath = false;
+        this.el.hide();
+        return true;
     },
     init : function() {
         XObject.prototype.init.call(this);