Sample/Editor.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:27:35 +0000 (11:27 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:27:35 +0000 (11:27 +0800)
Sample/Editor.js

index cfbd524..d37ff26 100644 (file)
@@ -14,7 +14,7 @@ Editor=new XObject({
     xtype: Gtk.Window,
     listeners : {
         destroy_event : function (self, event) {
-            if (!this.save()) {
+            if (!this.get('/Editor.RightEditor').save()) {
                 // no hiding with errors.
                 return true;
             }
@@ -22,7 +22,7 @@ Editor=new XObject({
             return true;
         },
         delete_event : function (self, event) {
-            if (!this.save()) {
+            if (!this.get('/Editor.RightEditor').save()) {
                 // no hiding with errors.
                 return true;
             }