seed r588 - trunk/examples



Author: hortont
Date: Wed Dec 31 01:53:52 2008
New Revision: 588
URL: http://svn.gnome.org/viewvc/seed?rev=588&view=rev

Log:
More example updates.


Modified:
   trunk/examples/video.js
   trunk/examples/vte-test.js

Modified: trunk/examples/video.js
==============================================================================
--- trunk/examples/video.js	(original)
+++ trunk/examples/video.js	Wed Dec 31 01:53:52 2008
@@ -11,7 +11,6 @@
 source = Gst.ElementFactory.make("videotestsrc", "video");
 sink = Gst.ElementFactory.make("autovideosink", "sink");
 
-
 pipeline.add(source);
 pipeline.add(sink);
 source.link(sink);
@@ -20,5 +19,3 @@
 
 Gtk.main();
 
-
-

Modified: trunk/examples/vte-test.js
==============================================================================
--- trunk/examples/vte-test.js	(original)
+++ trunk/examples/vte-test.js	Wed Dec 31 01:53:52 2008
@@ -7,6 +7,8 @@
 	init(null, null);
 
 	var window = new Window();
+	window.signal.hide.connect(function () { Gtk.main_quit(); } );
+	
 	var scroll = new ScrolledWindow();
 
 	var vte = new Vte.Terminal();
@@ -24,11 +26,9 @@
 					  PolicyType.Automatic);
 
 	window.add(scroll);
+	window.resize(600,400);
 	window.show_all();
 
-	window.width_request = 500;
-	window.height_request = 400;
-
 	main();
 
 }



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