tools
[app.Builder.js] / Sample / DialogConfirm.js
index 877c58a..70703ac 100644 (file)
@@ -25,14 +25,17 @@ DialogConfirm=new XObject({
     message_type : Gtk.MessageType.QUESTION,
     use_markup : true,
     text : "-",
+    modal : true,
     listeners : {
-        "response":function (self, response_id) {
+        response : function (self, response_id) {
            this.el.hide();
-            if (response_id > 0) {
+        print("RESPOSE: " + response_id);
+            if (response_id == -8) { //yes!
+           print("CALL SUCCES?")
               this.success();
             }
         },
-        "delete_event":function (self, event) {
+        delete_event : function (self, event) {
             this.el.hide();
             return true;
         }