seed r185 - in trunk: . examples examples/shader



Author: hortont
Date: Sat Nov  8 01:53:49 2008
New Revision: 185
URL: http://svn.gnome.org/viewvc/seed?rev=185&view=rev

Log:
Lots of Gtk.main_quits, and some configure cleanup.



Modified:
   trunk/configure.ac
   trunk/examples/actions.js
   trunk/examples/clutter.js
   trunk/examples/json-packing.js
   trunk/examples/pango-fontset.js
   trunk/examples/pango.js
   trunk/examples/shader/main.js

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Sat Nov  8 01:53:49 2008
@@ -24,7 +24,7 @@
 AM_PROG_LIBTOOL
 
 dnl libffi
-PKG_CHECK_MODULES(FFI, libffi, have_ffi_pkgconfig=yes, have_ffi_pkgconfig=no)
+PKG_CHECK_MODULES(libffi, libffi, have_ffi_pkgconfig=yes, have_ffi_pkgconfig=no)
 
 if test x"$have_ffi_pkgconfig" = xno ; then
   AC_MSG_CHECKING(for ffi.h)
@@ -64,11 +64,12 @@
     AC_DEFINE(HAVE_LIBREADLINE, 1, [have readline]),
     AC_MSG_ERROR([readline not found]))
 
-PKG_CHECK_MODULES(LIBSEED, gobject-introspection-1.0 webkit-1.0)
 PKG_CHECK_MODULES(SEED, gobject-introspection-1.0 webkit-1.0)
+PKG_CHECK_MODULES(LIBSEED, gobject-introspection-1.0 webkit-1.0)
 
 AC_CONFIG_FILES([
 seed.pc])
+
 AC_OUTPUT([
 Makefile
 libseed/Makefile

Modified: trunk/examples/actions.js
==============================================================================
--- trunk/examples/actions.js	(original)
+++ trunk/examples/actions.js	Sat Nov  8 01:53:49 2008
@@ -3,6 +3,7 @@
 Gtk.init(null, null);
 
 window = new Gtk.Window();
+window.signal.hide.connect(Gtk.main_quit);
 toolbar = new Gtk.Toolbar();
 vbox = new Gtk.VBox();
 window.add(vbox);

Modified: trunk/examples/clutter.js
==============================================================================
--- trunk/examples/clutter.js	(original)
+++ trunk/examples/clutter.js	Sat Nov  8 01:53:49 2008
@@ -47,6 +47,7 @@
 }
 
 var stage = new Clutter.Stage();
+stage.signal.hide.connect(Clutter.main_quit);
 var timeline = new Clutter.Timeline({fps:60, num_frames:300});
 stage.show_all();
 
@@ -125,4 +126,4 @@
 timeline.start();
 
 Clutter.main();
-	   
\ No newline at end of file
+

Modified: trunk/examples/json-packing.js
==============================================================================
--- trunk/examples/json-packing.js	(original)
+++ trunk/examples/json-packing.js	Sat Nov  8 01:53:49 2008
@@ -19,10 +19,11 @@
 	];
 
 window = new Gtk.Window();
+window.signal.hide.connect(Gtk.main_quit);
 vbox = new Gtk.VBox();
 
 vbox.pack(packing);
 
 window.add(vbox);
 window.show_all();
-Gtk.main();
\ No newline at end of file
+Gtk.main();

Modified: trunk/examples/pango-fontset.js
==============================================================================
--- trunk/examples/pango-fontset.js	(original)
+++ trunk/examples/pango-fontset.js	Sat Nov  8 01:53:49 2008
@@ -15,5 +15,5 @@
 		function(fontset, font)
 		{
 		    description = font.describe();
-		    Seed.print(description.get_family());
-		});
\ No newline at end of file
+		    Seed.print(description.to_string());
+		});

Modified: trunk/examples/pango.js
==============================================================================
--- trunk/examples/pango.js	(original)
+++ trunk/examples/pango.js	Sat Nov  8 01:53:49 2008
@@ -39,9 +39,6 @@
 function update_font()
 {
     current_actor.font_name = font_list[properties.font_combo.get_active()] + " " + parseFloat(properties.size_entry.text,10);
-    
-    Seed.print(properties.size_entry.text);
-    Seed.print(parseFloat(properties.size_entry.text,10));
 }
 
 function add_actor()
@@ -152,6 +149,7 @@
 function ui_setup()
 {
     var window = new Gtk.Window();
+    window.signal.hide.connect(Gtk.main_quit);
     var gtkstage = new GtkClutter.Embed();
 
     properties = new prop_editor();

Modified: trunk/examples/shader/main.js
==============================================================================
--- trunk/examples/shader/main.js	(original)
+++ trunk/examples/shader/main.js	Sat Nov  8 01:53:49 2008
@@ -10,6 +10,7 @@
 GtkClutter.init(null, null);
 
 var window = new Gtk.Window();
+window.signal.hide.connect(Gtk.main_quit);
 var gtkstage = new GtkClutter.Embed();
 var stage = gtkstage.get_stage();
 var texture = new Clutter.Texture({filename:"bob.jpg"});



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