seed r25 - trunk/examples/lightsoff



Author: racarr
Date: Thu Oct 23 11:22:09 2008
New Revision: 25
URL: http://svn.gnome.org/viewvc/seed?rev=25&view=rev

Log:
Tims changes.


Modified:
   trunk/examples/lightsoff/lightsoff.js

Modified: trunk/examples/lightsoff/lightsoff.js
==============================================================================
--- trunk/examples/lightsoff/lightsoff.js	(original)
+++ trunk/examples/lightsoff/lightsoff.js	Thu Oct 23 11:22:09 2008
@@ -28,7 +28,7 @@
 		    buttons[i][j].set_relief(Gtk.ReliefStyle.none);
 		    buttons[i][j].can_focus = false;
 		
-		    buttons[i][j].signal_clicked.connect(buttoon, buttons[i][j]);
+		    buttons[i][j].signal_clicked.connect(button_clicked, buttons[i][j]);
 		    table.attach_defaults(buttons[i][j], j, j+1, i, i+1);
 	    }
     }
@@ -70,14 +70,14 @@
 	flip_color(x,y);
 }
 
-function buttoon( button )
+function button_clicked( button )
 {
 	do_click(this.x, this.y);
 
 	if ( wincount == 0 )
 	{
 		Seed.print("GLORIOUS VICTORY");
-		exit(0);
+		initialize_game();
 	}
 }
 



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