From 048b010aaf3960fd73352f23d6884b2dad08e9e2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 28 Aug 2010 15:15:32 +0800 Subject: [PATCH] tools --- Sample/DialogConfirm.js | 4 ++-- Sample/DialogSaveTemplate.js | 5 +---- Sample/DialogTemplateSelect.js | 3 --- Sample/EditProject.js | 4 ++-- Sample/RooProjectProperties.js | 4 ++-- Sample/StandardErrorDialog.js | 4 ++-- roojs1 | 2 +- 7 files changed, 10 insertions(+), 16 deletions(-) diff --git a/Sample/DialogConfirm.js b/Sample/DialogConfirm.js index 0960e7a0b..70703aca5 100644 --- a/Sample/DialogConfirm.js +++ b/Sample/DialogConfirm.js @@ -27,7 +27,7 @@ DialogConfirm=new XObject({ text : "-", modal : true, listeners : { - "response":function (self, response_id) { + response : function (self, response_id) { this.el.hide(); print("RESPOSE: " + response_id); if (response_id == -8) { //yes! @@ -35,7 +35,7 @@ DialogConfirm=new XObject({ this.success(); } }, - "delete_event":function (self, event) { + delete_event : function (self, event) { this.el.hide(); return true; } diff --git a/Sample/DialogSaveTemplate.js b/Sample/DialogSaveTemplate.js index 6828e5686..c82c49d3c 100644 --- a/Sample/DialogSaveTemplate.js +++ b/Sample/DialogSaveTemplate.js @@ -60,10 +60,7 @@ DialogSaveTemplate=new XObject({ { xtype: Gtk.Label, label : "Name", - pack : "add", - listeners : { - - } + pack : "add" }, { xtype: Gtk.Entry, diff --git a/Sample/DialogTemplateSelect.js b/Sample/DialogTemplateSelect.js index 63d5b6631..486924e36 100644 --- a/Sample/DialogTemplateSelect.js +++ b/Sample/DialogTemplateSelect.js @@ -54,9 +54,6 @@ DialogTemplateSelect=new XObject({ { xtype: Gtk.HBox, pack : "pack_start,false,false,0", - listeners : { - - }, items : [ { xtype: Gtk.Label, diff --git a/Sample/EditProject.js b/Sample/EditProject.js index 48d533016..456e1e5f6 100644 --- a/Sample/EditProject.js +++ b/Sample/EditProject.js @@ -33,11 +33,11 @@ EditProject=new XObject({ this.success = c.success; }, listeners : { - "destroy_event":function (self, event) { + destroy_event : function (self, event) { this.el.hide(); return false; }, - "response":function (self, id) { + response : function (self, id) { if (id < 1) { this.el.hide(); return; diff --git a/Sample/RooProjectProperties.js b/Sample/RooProjectProperties.js index 5fd57116a..24d90b33f 100644 --- a/Sample/RooProjectProperties.js +++ b/Sample/RooProjectProperties.js @@ -28,11 +28,11 @@ RooProjectProperties=new XObject({ }, default_width : 500, listeners : { - "delete_event":function (self, event) { + delete_event : function (self, event) { this.el.hide() return true; }, - "response":function (self, response_id) { + response : function (self, response_id) { print(response_id); if (!response_id) { this.el.hide(); diff --git a/Sample/StandardErrorDialog.js b/Sample/StandardErrorDialog.js index 1b98edf7d..a12c6d5be 100644 --- a/Sample/StandardErrorDialog.js +++ b/Sample/StandardErrorDialog.js @@ -24,11 +24,11 @@ StandardErrorDialog=new XObject({ this.el.show_all(); }, listeners : { - "delete_event":function (self, event) { + delete_event : function (self, event) { this.el.hide(); return true; }, - "response":function (self, response_id) { + response : function (self, response_id) { this.el.hide(); } } diff --git a/roojs1 b/roojs1 index cb5ee27f1..e6f019d15 160000 --- a/roojs1 +++ b/roojs1 @@ -1 +1 @@ -Subproject commit cb5ee27f164e32ed59a801c560c417db2c461668 +Subproject commit e6f019d1535671672e34eb6a46fa31b9a98fedb2 -- 2.39.2