File gnome-games-seed-fixes.patch of Package gnome-games

commit f355bdcf67defbc7ffa998578241f02b247ee63e
Author: Edward Sheldrake <ejsheldrake@gmail.com>
Date:   Wed Oct 13 20:01:57 2010 +0100

    lightsoff, swell-foop: Fix segfault in gtkclutter init
    
    Work around segfault https://bugzilla.gnome.org/show_bug.cgi?id=630990
    The programs don't have any of their own command line arguments anyway.

diff --git a/lightsoff/src/main.js b/lightsoff/src/main.js
index 71fc986..c02167c 100755
--- a/lightsoff/src/main.js
+++ b/lightsoff/src/main.js
@@ -10,7 +10,7 @@ Gtk.init(Seed.argv);
 
 try
 {
-	GtkClutter.init_with_args(Seed.argv.length, Seed.argv);
+	GtkClutter.init(Seed.argv.length, Seed.argv);
 }
 catch(e)
 {
diff --git a/swell-foop/src/main.js b/swell-foop/src/main.js
index 2d23dce..40cda69 100755
--- a/swell-foop/src/main.js
+++ b/swell-foop/src/main.js
@@ -14,7 +14,7 @@ _ = imports.gettext.gettext;
 
 try
 {
-	GtkClutter.init_with_args(Seed.argv.length, Seed.argv);
+	GtkClutter.init(Seed.argv.length, Seed.argv);
 }
 catch(e)
 {

commit 98b73ad020ba6e61f0a9243a938792cd94c337ed
Author: Edward Sheldrake <ejsheldrake@gmail.com>
Date:   Wed Oct 13 20:08:08 2010 +0100

    lightsoff, swell-foop: Don't try to manually iterate GLib main loop inside inner loop
    
    Fix swell-foop and lightsoff not working due to:
    TypeError Result of expression 'GLib.main_context_iteration' [undefined] is not a function.
    
    Comment out the GLib.main_context_ functions. I don't know what if anything
    these should be replaced with, but swell-foop and lightsoff appear to work
    without them.

diff --git a/lightsoff/src/Board.js b/lightsoff/src/Board.js
index 2f02ab0..c04b579 100644
--- a/lightsoff/src/Board.js
+++ b/lightsoff/src/Board.js
@@ -100,7 +100,7 @@ BoardView = new GType({
 					lights[x][y] = l;
 					self.add_actor(l);
 					
-					GLib.main_context_iteration(null, false);
+					// GLib.main_context_iteration(null, false);
 				}
 			}
 		}
diff --git a/swell-foop/src/Board.js b/swell-foop/src/Board.js
index 0e44c78..84cff9d 100644
--- a/swell-foop/src/Board.js
+++ b/swell-foop/src/Board.js
@@ -40,8 +40,8 @@ Board = new GType({
 			
 			var con = [li];
 			
-			while(GLib.main_context_pending())
-				GLib.main_context_iteration();
+			// while(GLib.main_context_pending())
+			//	GLib.main_context_iteration();
 			
 			var a = [], b = [], c = [], d = [];
 			
@@ -232,10 +232,10 @@ Board = new GType({
 					if(!li.get_closed())
 						empty_col = false;
 					
-					GLib.main_context_iteration();
+					// GLib.main_context_iteration();
 				}
 				
-				GLib.main_context_iteration();
+				// GLib.main_context_iteration();
 				
 				if(!empty_col)
 					real_x++;
diff --git a/swell-foop/src/Light.js b/swell-foop/src/Light.js
index bd4ee74..b8dd5c8 100644
--- a/swell-foop/src/Light.js
+++ b/swell-foop/src/Light.js
@@ -48,7 +48,7 @@ Light = new GType({
 			
 			timeline.signal.completed.connect(this.hide_light, this);
 			
-			GLib.main_context_iteration();
+			// GLib.main_context_iteration();
 		};
 	
 		this.animate_to = function (new_x, new_y, timeline)
@@ -62,7 +62,7 @@ Light = new GType({
 				y: new_y
 			});
 			
-			GLib.main_context_iteration();
+			// GLib.main_context_iteration();
 		};
 	
 		this.get_closed = function ()