seed r276 - trunk/examples/lightsoff



Author: hortont
Date: Fri Nov 21 03:36:57 2008
New Revision: 276
URL: http://svn.gnome.org/viewvc/seed?rev=276&view=rev

Log:
Don't use GConf schema, just guess at initial score.


Removed:
   trunk/examples/lightsoff/lightsoff.schemas
Modified:
   trunk/examples/lightsoff/Makefile.am
   trunk/examples/lightsoff/score.js

Modified: trunk/examples/lightsoff/Makefile.am
==============================================================================
--- trunk/examples/lightsoff/Makefile.am	(original)
+++ trunk/examples/lightsoff/Makefile.am	Fri Nov 21 03:36:57 2008
@@ -20,7 +20,6 @@
 	score.js \
 	lcd-off.svg \
 	menu.js \
-	lightsoff.schemas \
 	arrow-l.svg \
 	arrow-r.svg \
 	arrow.js
@@ -45,14 +44,8 @@
 	score.js \
 	lcd-off.svg \
 	menu.js \
-	lightsoff.schemas \
 	arrow-l.svg \
 	arrow-r.svg \
 	arrow.js
 ## File created by the gnome-build tools
 
-schemadir   = @GCONF_SCHEMA_FILE_DIR@
-schema_DATA = lightsoff.schemas
-
-install-data-local:
-	gconftool-2 --install-schema-file=$(schema_DATA)

Modified: trunk/examples/lightsoff/score.js
==============================================================================
--- trunk/examples/lightsoff/score.js	(original)
+++ trunk/examples/lightsoff/score.js	Fri Nov 21 03:36:57 2008
@@ -76,6 +76,10 @@
 		this.add_actor(this.bkg_top);
 
 		this.set_value(gconf_client.get_int("/apps/lightsoff/score"));
+		
+		if(this.value == 0)
+			this.set_value(1);
+		
 	Seed.print(bkg.__debug_ref_count());
 	Seed.print(this.bkg_top.__debug_ref_count());
 	Seed.print(off_svg.__debug_ref_count());



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