MOVED Sample to tools/Sample
[app.Builder.js] / tools / Sample / About.js
diff --git a/tools/Sample/About.js b/tools/Sample/About.js
new file mode 100644 (file)
index 0000000..4fc46b1
--- /dev/null
@@ -0,0 +1,33 @@
+Gtk = imports.gi.Gtk;
+Gdk = imports.gi.Gdk;
+Pango = imports.gi.Pango;
+GLib = imports.gi.GLib;
+Gio = imports.gi.Gio;
+GObject = imports.gi.GObject;
+GtkSource = imports.gi.GtkSource;
+WebKit = imports.gi.WebKit;
+Vte = imports.gi.Vte;
+GtkClutter = imports.gi.GtkClutter;
+Gdl = imports.gi.Gdl;
+console = imports.console;
+XObject = imports.XObject.XObject;
+About=new XObject({
+    xtype: Gtk.AboutDialog,
+    listeners : {
+        response : function (self, response_id) {
+            this.el.hide();
+        },
+        delete_event : function (self, event) {
+            this.el.hide();
+            return true;
+        }
+    },
+    authors : "Alan Knowles",
+    copyright : "LGPL",
+    license : "LGPL",
+    program_name : "app.Builder.js",
+    website : "http://www.akbkhome.com/blog.php",
+    modal : true
+});
+About.init();
+XObject.cache['/About'] = About;