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

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

index b8660fc..e82b916 100644 (file)
@@ -6,7 +6,7 @@
     "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*/",
+            "|void:show_all": "void () {\n    this.show(\"test\");\n}\n ",
             "listeners": {
                 "delete_event": " (event) => {\n    this.el.hide();\n    return true;\n}\n \n\n\n"
             },
index b953ace..781c39a 100644 (file)
@@ -11,14 +11,9 @@ console = imports.console;
 XObject = imports.XObject.XObject;
 DialogConfirm=new XObject({
     xtype: Gtk.MessageDialog,
-    'void:show_all' : function() {
+    'void:show_all' : void () {
         this.show("test");
-    }
-    /*--
-    void () {
-        this.show("test");
-    }
-    */,
+    },
     listeners : {
         delete_event : (event) => {
             this.el.hide();
index 2a40221..1496f7e 100644 (file)
@@ -40,17 +40,6 @@ public class Xcls_MessageDialog1
         this.el.use_markup = true;
 
         // listeners 
-        this.el.response.connect(  ( response_id) =>  {
-           this.el.hide();
-            //print("RESPOSE: " + response_id);
-            if (response_id == -8) => { //yes!
-                   print("CALL SUCCES?");
-              // this.success();
-            }
-        
-        
-        }
-          );
         this.el.delete_event.connect(  (event) => {
             this.el.hide();
             return true;
@@ -59,6 +48,10 @@ public class Xcls_MessageDialog1
     }
 
     // userdefined functions 
+    public void show_allvoid () {
+            this.show("test");
+        }
+         
 
     // skip listeners - not pipe 
 
@@ -81,14 +74,6 @@ public class Xcls_MessageDialog1
         
         }
          
-    public void show_allfunction() {
-            this.show("test");
-        }
-        /*--
-        void () {
-            this.show("test");
-        }
-        */
 
     // skip |use_markup - already used