seed r452 - trunk/examples/lightsoff



Author: racarr
Date: Sun Dec 14 06:53:10 2008
New Revision: 452
URL: http://svn.gnome.org/viewvc/seed?rev=452&view=rev

Log:
Fix lightsoff to not use signal this..

Modified:
   trunk/examples/lightsoff/arrow.js

Modified: trunk/examples/lightsoff/arrow.js
==============================================================================
--- trunk/examples/lightsoff/arrow.js	(original)
+++ trunk/examples/lightsoff/arrow.js	Sun Dec 14 06:53:10 2008
@@ -1,10 +1,10 @@
-function pushed_arrow()
+function pushed_arrow(actor, event)
 {
 	if(animating_board)
 		return true;
 		
 	// TODO: Need to check that click count is 1
-	var direction = (this.flipped ? 1 : -1);
+	var direction = (actor.flipped ? 1 : -1);
 	
 	if(score.value + direction < 1)
 		return true;
@@ -39,7 +39,7 @@
 		bkg.filter_quality = Clutter.TextureQuality.high;
 		
 		this.reactive = true;
-		this.signal.button_press_event.connect(pushed_arrow, this);
+		this.signal.button_press_event.connect(pushed_arrow);
 		
 		this.add_actor(bkg);
     }};



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