projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7bedfd
)
Sample/Editor.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 4 Nov 2010 03:20:01 +0000
(11:20 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 4 Nov 2010 03:20:01 +0000
(11:20 +0800)
Sample/Editor.js
patch
|
blob
|
history
diff --git
a/Sample/Editor.js
b/Sample/Editor.js
index
8c741ee
..
3be3ec7
100644
(file)
--- a/
Sample/Editor.js
+++ b/
Sample/Editor.js
@@
-12,16
+12,16
@@
console = imports.console;
XObject = imports.XObject.XObject;
Editor=new XObject({
xtype: Gtk.Window,
XObject = imports.XObject.XObject;
Editor=new XObject({
xtype: Gtk.Window,
- listeners : {
- destroy_event : function (self, event) {
- if (!this.get('/Editor.RightEditor').save()) {
- // no hiding with errors.
- return true;
- }
- this.get('/Editor').activePath = false;
- this.el.hide();
+ save : function (self, event) {
+ if (!this.get('/Editor.RightEditor').save()) {
+ // no hiding with errors.
return true;
return true;
- },
+ }
+ this.get('/Editor').activePath = false;
+ this.el.hide();
+ return true;
+ },
+ listeners : {
delete_event : function (self, event) {
if (!this.get('/Editor.RightEditor').save()) {
// no hiding with errors.
delete_event : function (self, event) {
if (!this.get('/Editor.RightEditor').save()) {
// no hiding with errors.
@@
-47,6
+47,9
@@
Editor=new XObject({
id : "EditorWindow",
title : "Application Builder - Editor",
width_request : 500,
id : "EditorWindow",
title : "Application Builder - Editor",
width_request : 500,
+ : function() {
+ return this.get('/Editor.RightEditor').save();
+ },
init : function() {
XObject.prototype.init.call(this);
// this.show_all();
init : function() {
XObject.prototype.init.call(this);
// this.show_all();