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

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

index bdb2e57..2a4423b 100644 (file)
@@ -16,7 +16,7 @@
             "|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",
+            "|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 7a59e71..29da92a 100644 (file)
@@ -32,26 +32,13 @@ DialogConfirm=new XObject({
     buttons : Gtk.ButtonsType.YES_NO,
     message_type : Gtk.MessageType.QUESTION,
     modal : true,
-    show : function(msg, success) {
-         if (!this.el) {
-                this.init();
-            }
-         this.success = success;
-            this.el.text =  msg;
-            this.el.show_all();
-    
-    }
-    
-    /*--
-    void (string msg) {
+    'void:show' : (string msg) {
          //if (!this.el) { this.init(); } 
          //this.success = success;
         this.el.text =  msg;
         this.el.show_all();
     
-    }
-    
-    */,
+    },
     show_all : function() {
         this.show("test");
     }
index ed95d92..112e688 100644 (file)
@@ -73,8 +73,14 @@ public class Xcls_MessageDialog1
     // skip |message_type - already used 
 
     // skip |modal - already used 
-
-    // skip |show - no return type
+    public void show  (string msg) {
+             //if (!this.el) { this.init(); } 
+             //this.success = success;
+            this.el.text =  msg;
+            this.el.show_all();
+        
+        }
+         
 
     // skip |show_all - no return type