seed r478 - trunk/examples



Author: racarr
Date: Mon Dec 15 08:53:22 2008
New Revision: 478
URL: http://svn.gnome.org/viewvc/seed?rev=478&view=rev

Log:
Add threaded repl example. Still a little screwy, but can do things like
manipulate objects, connect signals, etc, without worrying about any
threading issues from JS.

Added:
   trunk/examples/threaded-repl.js   (contents, props changed)
Modified:
   trunk/examples/Makefile.am

Modified: trunk/examples/Makefile.am
==============================================================================
--- trunk/examples/Makefile.am	(original)
+++ trunk/examples/Makefile.am	Mon Dec 15 08:53:22 2008
@@ -6,6 +6,7 @@
 examples_DATA = \
 	actions.js \
 	clutter-cairo.js \ 
+	threaded-repl.js \
 	calculator.js \
 	gconf.js \
 	video.js \

Added: trunk/examples/threaded-repl.js
==============================================================================
--- (empty file)
+++ trunk/examples/threaded-repl.js	Mon Dec 15 08:53:22 2008
@@ -0,0 +1,10 @@
+#!/usr/local/bin/seed
+Seed.import_namespace("Gtk");
+Seed.import_namespace("GLib");
+Gtk.init(null, null);
+var w = new Gtk.Window();
+
+//Can interact with window at threaded repl.
+Seed.thread_repl();
+
+Gtk.main();
\ No newline at end of file



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