Attribute changed old-javascript
[app.Builder.js] / old-javascript / Builder3 / DialogConfirm.bjs
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":"-","|modal":true,"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}"}}]}