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

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

index cb77444..7eeee31 100644 (file)
@@ -17,7 +17,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/*--\nvoid (string msg) {\n     //if (!this.el) { this.init(); } \n     //this.success = success;\n    this.text =  msg;\n    this.show_all();\n\n}\n\n*/\n\n\n\n",
+            "|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/*--\nvoid (string msg) {\n     //if (!this.el) { this.init(); } \n     //this.success = success;\n    this.text =  msg;\n    this.el.show_all();\n\n}\n\n*/\n\n\n\n",
             "|use_markup": "true",
             "|xns": "Gtk"
         }
index bd83f5e..7a8875b 100644 (file)
@@ -61,7 +61,7 @@ DialogConfirm=new XObject({
          //if (!this.el) { this.init(); } 
          //this.success = success;
         this.text =  msg;
-        this.show_all();
+        this.el.show_all();
     
     }
     
index 9cd720a..e51c83a 100644 (file)
@@ -80,7 +80,7 @@ public class Xcls_MessageDialog1
              //if (!this.el) { this.init(); } 
              //this.success = success;
             this.text =  msg;
-            this.show_all();
+            this.el.show_all();
         
         }