Sample/DialogConfirm.bjs
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:13:45 +0000 (13:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 05:13:45 +0000 (13:13 +0800)
Sample/DialogConfirm.bjs

index ace45d5..a029a95 100644 (file)
@@ -1 +1 @@
-{"id":"file-gtk-9","name":"DialogConfirm","parent":"","title":false,"path":"/home/alan/gitlive/app.Builder.js/Sample/DialogConfirm.bjs","items":[{"|xns":"Gtk","xtype":"MessageDialog","|show":"function(msg, success) {\n     if (!this.el) {\n            this.init();\n        }\n     this.success = success;\n        this.el.text =  msg;\n        this.el.show_all();\n\n}\n","|buttons":"Gtk.ButtonsType.YES_NO","title":"Please Confirm","|message_type":"Gtk.MessageType.QUESTION","|use_markup":true,"text":"-","listeners":{"response":"function (self, response_id) {\n   this.el.hide();\nprint(\"RESPOSE: \" + response_id);\n    if (response_id ==  0) {\n   print(\"CALL SUCCES?\")\n      this.success();\n    }\n}","delete_event":"function (self, event) {\n    this.el.hide();\n    return true;\n}"}}]}
\ No newline at end of file
+{"id":"file-gtk-9","name":"DialogConfirm","parent":"","title":false,"path":"/home/alan/gitlive/app.Builder.js/Sample/DialogConfirm.bjs","items":[{"|xns":"Gtk","xtype":"MessageDialog","|show":"function(msg, success) {\n     if (!this.el) {\n            this.init();\n        }\n     this.success = success;\n        this.el.text =  msg;\n        this.el.show_all();\n\n}\n","|buttons":"Gtk.ButtonsType.YES_NO","title":"Please Confirm","|message_type":"Gtk.MessageType.QUESTION","|use_markup":true,"text":"-","listeners":{"response":"function (self, response_id) {\n   this.el.hide();\nprint(\"RESPOSE: \" + response_id);\n    if (response_id == -8) { //yes!\n   print(\"CALL SUCCES?\")\n      this.success();\n    }\n}","delete_event":"function (self, event) {\n    this.el.hide();\n    return true;\n}"}}]}
\ No newline at end of file