Builder4/DialogConfirm.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 14:49:17 +0000 (22:49 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 14:49:17 +0000 (22:49 +0800)
Builder4/DialogConfirm.js
Builder4/DialogConfirm.vala

Builder4/DialogConfirm.bjs
Builder4/DialogConfirm.js
Builder4/DialogConfirm.vala

index cf9715d..4fd7576 100644 (file)
@@ -10,7 +10,7 @@
                 "response": "function (self, response_id) {\n   this.el.hide();\n     print(\"RESPOSE: \" + response_id);\n    if (response_id == -8) { //yes!\n   print(\"CALL SUCCES?\")\n    this.success(); //  fixme a delegate\n    }\n}\n/*--\n ( response_id) =>  {\n   this.el.hide();\n    //print(\"RESPOSE: \" + response_id);\n    if (response_id == -8) { //yes!\n           print(\"CALL SUCCES?\");\n      // this.success();\n    }\n\n}\n*/",
                 "delete_event": "function (self, event) {\n    this.el.hide();\n    return true;\n}\n/*--\n(event) => {\n    this.el.hide();\n    return true;\n}\n*/\n\n\n"
             },
-            "text": "Test",
+            "text": "Tests",
             "title": "Please Confirm",
             "xtype": "MessageDialog",
             "|buttons": "Gtk.ButtonsType.YES_NO",
index 6988eca..c5cb264 100644 (file)
@@ -42,7 +42,7 @@ DialogConfirm=new XObject({
         }
         */
     },
-    text : "Test",
+    text : "Tests",
     title : "Please Confirm",
     buttons : Gtk.ButtonsType.YES_NO,
     message_type : Gtk.MessageType.QUESTION,
index b005a62..e9a869d 100644 (file)
@@ -28,7 +28,7 @@ public class Xcls_MessageDialog1
         // ctor 
     public Xcls_MessageDialog1()
     {
-        this.el = new Gtk.MessageDialog( null, null, null, Gtk.ButtonsType.YES_NO, null );
+        this.el = new Gtk.MessageDialog( null, Gtk.DialogFlags.MODAL, Gtk.MessageType.QUESTION, Gtk.ButtonsType.YES_NO, null );
         _this = this;
         DialogConfirm = this;
 
@@ -38,7 +38,7 @@ public class Xcls_MessageDialog1
         this.el.buttons = Gtk.ButtonsType.YES_NO;
         this.el.message_type = Gtk.MessageType.QUESTION;
         this.el.modal = true;
-        this.el.text = "Test";
+        this.el.text = "Tests";
         this.el.title = "Please Confirm";
         this.el.use_markup = true;