seed r737 - trunk/examples



Author: racarr
Date: Wed Jan 14 20:53:01 2009
New Revision: 737
URL: http://svn.gnome.org/viewvc/seed?rev=737&view=rev

Log:
Example fixes

Modified:
   trunk/examples/poppler.js
   trunk/examples/video.js

Modified: trunk/examples/poppler.js
==============================================================================
--- trunk/examples/poppler.js	(original)
+++ trunk/examples/poppler.js	Wed Jan 14 20:53:01 2009
@@ -57,11 +57,11 @@
 	var file_filter = new Gtk.FileFilter();
 	file_filter.add_mime_type("application/x-pdf");
 	file_chooser.set_filter(file_filter);
-	file_chooser.add_button("Cancel", Gtk.ResponseType.Cancel);
-	file_chooser.add_button("Open", Gtk.ResponseType.Accept);
-	file_chooser.set_action(Gtk.FileChooserAction.Ppen);
+	file_chooser.add_button("Cancel", Gtk.ResponseType.CANCEL);
+	file_chooser.add_button("Open", Gtk.ResponseType.ACCEPT);
+	file_chooser.set_action(Gtk.FileChooserAction.OPEN);
 	
-	if(file_chooser.run() == Gtk.ResponseType.Accept)
+	if(file_chooser.run() == Gtk.ResponseType.ACCEPT)
 	{
 		// Poppler.Document will not take a uri as a construction property,
 		// use this:

Modified: trunk/examples/video.js
==============================================================================
--- trunk/examples/video.js	(original)
+++ trunk/examples/video.js	Wed Jan 14 20:53:01 2009
@@ -15,7 +15,7 @@
 pipeline.add(sink);
 source.link(sink);
 
-pipeline.set_state(Gst.State.Playing);
+pipeline.set_state(Gst.State.PLAYING);
 
 Gtk.main();
 



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