Builder4/DialogConfirm.bjs
authorAlan Knowles <alan@akbkhome.com>
Sun, 25 May 2014 15:37:14 +0000 (23:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 25 May 2014 15:37:14 +0000 (23:37 +0800)
Builder4/DialogConfirm.js
Builder4/DialogConfirm.vala

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

index 48d37c8..8d85206 100644 (file)
@@ -7,17 +7,17 @@
     "items": [
         {
             "listeners": {
-                "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*/",
+                "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}\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": "Tests",
             "title": "Please Confirm d",
             "xtype": "MessageDialog",
-            "|show_all": "function() {\n    this.show(\"test\");\n}\n/*--\nvoid () {\n    this.show(\"test\");\n}\n*/",
             "|buttons": "Gtk.ButtonsType.YES_NO",
             "|message_type": "Gtk.MessageType.QUESTION",
             "|modal": "true",
             "|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\n/*--\nvoid (string msg) {\n     //if (!this.el) { this.init(); } \n     //this.success = success;\n    this.el.text =  msg;\n    this.el.show_all();\n\n}\n\n*/\n\n\n\n",
+            "|show_all": "function() {\n    this.show(\"test\");\n}\n/*--\nvoid () {\n    this.show(\"test\");\n}\n*/",
             "|use_markup": "true",
             "|xns": "Gtk"
         }
index 0ed8115..3ef2872 100644 (file)
@@ -29,6 +29,7 @@ DialogConfirm=new XObject({
               // this.success();
             }
         
+        
         }
         */,
         delete_event : function (self, event) {
@@ -44,14 +45,6 @@ DialogConfirm=new XObject({
     },
     text : "Tests",
     title : "Please Confirm d",
-    show_all : function() {
-        this.show("test");
-    }
-    /*--
-    void () {
-        this.show("test");
-    }
-    */,
     buttons : Gtk.ButtonsType.YES_NO,
     message_type : Gtk.MessageType.QUESTION,
     modal : true,
@@ -74,6 +67,14 @@ DialogConfirm=new XObject({
     
     }
     
+    */,
+    show_all : function() {
+        this.show("test");
+    }
+    /*--
+    void () {
+        this.show("test");
+    }
     */,
     use_markup : true
 });
index d3baa87..b133e66 100644 (file)
@@ -48,6 +48,7 @@ public class Xcls_MessageDialog1
               // this.success();
             }
         
+        
         } );
         this.el.delete_event.connect( (event) => {
             this.el.hide();
@@ -64,9 +65,6 @@ public class Xcls_MessageDialog1
     // skip title - already used 
 
     // skip xtype - not pipe 
-    public void show_all() {
-            this.show("test");
-        }
 
     // skip |buttons - already used 
 
@@ -80,6 +78,9 @@ public class Xcls_MessageDialog1
             this.el.show_all();
         
         }
+    public void show_all() {
+            this.show("test");
+        }
 
     // skip |use_markup - already used