Attribute changed old-javascript
[app.Builder.js] / old-javascript / Builder4 / About.vala
diff --git a/old-javascript/Builder4/About.vala b/old-javascript/Builder4/About.vala
new file mode 100644 (file)
index 0000000..d6f49ed
--- /dev/null
@@ -0,0 +1,49 @@
+static About  _About;
+
+public class About : Object 
+{
+    public Gtk.AboutDialog el;
+    private About  _this;
+
+    public static About singleton()
+    {
+        if (_About == null) {
+            _About= new About();
+        }
+        return _About;
+    }
+
+        // my vars (def)
+
+    // ctor 
+    public About()
+    {
+        _this = this;
+        this.el = new Gtk.AboutDialog();
+
+        // my vars (dec)
+
+        // set gobject values
+        this.el.program_name = "app.Builder.js";
+        this.el.license = "LGPL";
+        this.el.authors = { "Alan Knowles" };
+        this.el.website = "http://www.akbkhome.com/blog.php";
+        this.el.modal = true;
+        this.el.copyright = "LGPL";
+
+        // listeners 
+        this.el.delete_event.connect( (self, event) => {
+            this.el.hide();
+            return true;
+        
+        });
+        this.el.response.connect( (rid) => {
+            this.el.hide();
+        });
+    }
+
+    // user defined functions 
+    public    void show_all () {
+        this.el.show_all();
+    }
+}