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:
87e297b
)
Sample/DialogSaveTemplate.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 7 Jun 2010 07:05:29 +0000
(15:05 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 7 Jun 2010 07:05:29 +0000
(15:05 +0800)
Sample/DialogSaveTemplate.js
patch
|
blob
|
history
diff --git
a/Sample/DialogSaveTemplate.js
b/Sample/DialogSaveTemplate.js
index
f3e86e3
..
a3c193e
100644
(file)
--- a/
Sample/DialogSaveTemplate.js
+++ b/
Sample/DialogSaveTemplate.js
@@
-13,7
+13,16
@@
DialogSaveTemplate=new XObject({
xtype: Gtk.Dialog,
listeners : {
delete_event : function (self, event) {
+ this.el.hide();
return true;
+ },
+ response : function (self, response_id) {
+ if (!response_id) {
+ return;
+ }
+ // now we save it..
+
+
}
},
default_height : 200,
@@
-41,7
+50,7
@@
DialogSaveTemplate=new XObject({
},
{
xtype: Gtk.Button,
- label : "
Cancel
",
+ label : "
OK
",
pack : "add_action_widget,0"
}
]