seed r91 - trunk/examples



Author: racarr
Date: Mon Nov  3 12:22:19 2008
New Revision: 91
URL: http://svn.gnome.org/viewvc/seed?rev=91&view=rev

Log:
Introspection example.


Added:
   trunk/examples/introspect.js   (contents, props changed)

Added: trunk/examples/introspect.js
==============================================================================
--- (empty file)
+++ trunk/examples/introspect.js	Mon Nov  3 12:22:19 2008
@@ -0,0 +1,7 @@
+#!/usr/local/bin/seed
+Seed.import_namespace("Gtk");
+Seed.include("json2.js");
+
+proto = Seed.prototype(Gtk.Window);
+method = Seed.introspect(proto.translate_coordinates);
+Seed.print(JSON.stringify(method));
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]