Builder4/DialogConfirm.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 10:29:52 +0000 (18:29 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 10:29:52 +0000 (18:29 +0800)
Builder4/DialogConfirm.js
Builder4/DialogConfirm.vala

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

index 2a4423b..b8660fc 100644 (file)
@@ -6,8 +6,8 @@
     "path": "/home/alan/gitlive/app.Builder.js/Builder4/DialogConfirm.bjs",
     "items": [
         {
+            "|void:show_all": "function() {\n    this.show(\"test\");\n}\n/*--\nvoid () {\n    this.show(\"test\");\n}\n*/",
             "listeners": {
-                "response": " ( 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": " (event) => {\n    this.el.hide();\n    return true;\n}\n \n\n\n"
             },
             "text": "Tests",
@@ -17,7 +17,6 @@
             "|message_type": "Gtk.MessageType.QUESTION",
             "|modal": "true",
             "|void:show": "  (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",
-            "|show_all": "function() {\n    this.show(\"test\");\n}\n/*--\nvoid () {\n    this.show(\"test\");\n}\n*/",
             "|use_markup": "true",
             "|xns": "Gtk"
         }
index 29da92a..b953ace 100644 (file)
@@ -11,17 +11,15 @@ console = imports.console;
 XObject = imports.XObject.XObject;
 DialogConfirm=new XObject({
     xtype: Gtk.MessageDialog,
+    'void:show_all' : function() {
+        this.show("test");
+    }
+    /*--
+    void () {
+        this.show("test");
+    }
+    */,
     listeners : {
-        response : ( response_id) =>  {
-           this.el.hide();
-            //print("RESPOSE: " + response_id);
-            if (response_id == -8) { //yes!
-                   print("CALL SUCCES?");
-              // this.success();
-            }
-        
-        
-        },
         delete_event : (event) => {
             this.el.hide();
             return true;
@@ -39,14 +37,6 @@ DialogConfirm=new XObject({
         this.el.show_all();
     
     },
-    show_all : function() {
-        this.show("test");
-    }
-    /*--
-    void () {
-        this.show("test");
-    }
-    */,
     use_markup : true
 });
 DialogConfirm.init();
index 112e688..2a40221 100644 (file)
@@ -81,8 +81,14 @@ public class Xcls_MessageDialog1
         
         }
          
-
-    // skip |show_all - no return type
+    public void show_allfunction() {
+            this.show("test");
+        }
+        /*--
+        void () {
+            this.show("test");
+        }
+        */
 
     // skip |use_markup - already used