[gnome-games/gnome-3-0] lightsoff: Get working with seed 2.91.90 - Fix error setting default theme - Don't call Gtk.init -



commit a17b540a2458462fb69505c916772d4a72cb3a12
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Mar 30 16:36:51 2011 +1100

    lightsoff: Get working with seed 2.91.90
     - Fix error setting default theme
     - Don't call Gtk.init - it makes things break and swell-foop doesn't use it so it can't be too important...

 configure.in              |    4 ++--
 lightsoff/src/Settings.js |    2 +-
 lightsoff/src/main.js     |    2 --
 3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/configure.in b/configure.in
index 905170c..3bbc819 100644
--- a/configure.in
+++ b/configure.in
@@ -23,9 +23,9 @@ AM_MAINTAINER_MODE([enable])
 # we support and which features to check for
 
 # This is the canonical list of all game subdirectories.
-allgames="aisleriot glchess glines gnect gnibbles gnobots2 gnomine gnotravex gnotski gtali iagno mahjongg quadrapassel"
+allgames="aisleriot glchess glines gnect gnibbles gnobots2 gnomine gnotravex gnotski gtali iagno lightsoff mahjongg quadrapassel"
 AC_SUBST([allgames])
-staginggames="swell-foop gnome-sudoku lightsoff"
+staginggames="swell-foop gnome-sudoku"
 AC_SUBST([staginggames])
 
 gamelist=""
diff --git a/lightsoff/src/Settings.js b/lightsoff/src/Settings.js
index 74d6b17..9be2695 100644
--- a/lightsoff/src/Settings.js
+++ b/lightsoff/src/Settings.js
@@ -22,7 +22,7 @@ try
 	use_theme_colors = gconf_client.get_bool("/apps/lightsoff/use_theme_colors");
 	
 	if(theme == null)
-		theme = default_theme_name;
+		theme_name = default_theme_name;
 }
 catch(e)
 {
diff --git a/lightsoff/src/main.js b/lightsoff/src/main.js
index c02167c..4eed988 100755
--- a/lightsoff/src/main.js
+++ b/lightsoff/src/main.js
@@ -6,8 +6,6 @@ Gtk = imports.gi.Gtk;
 GtkBuilder = imports.gtkbuilder;
 GnomeGamesSupport = imports.gi.GnomeGamesSupport;
 
-Gtk.init(Seed.argv);
-
 try
 {
 	GtkClutter.init(Seed.argv.length, Seed.argv);



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