[gnome-games] Update Lights Off to new imports mechanism, so it works with Seed >= 0.5



commit 109ac571887a8e2a03399e39d09112c6a3aa40c7
Author: Tim Horton <hortont hortont com>
Date:   Fri May 1 01:55:14 2009 -0400

    Update Lights Off to new imports mechanism, so it works with Seed >= 0.5
---
 lightsoff/main.js.in |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/lightsoff/main.js.in b/lightsoff/main.js.in
index 3d5484f..5c03ef0 100755
--- a/lightsoff/main.js.in
+++ b/lightsoff/main.js.in
@@ -4,12 +4,17 @@
 var tiles = 5;
 var tile_size = 75;
 
-Seed.import_namespace("Gtk");
-Seed.import_namespace("Clutter", "0.8");
-Seed.import_namespace("GtkClutter", "0.8");
-Seed.import_namespace("GdkPixbuf");
-Seed.import_namespace("GConf");
-Seed.import_namespace("GLib");
+imports.gi.versions.Clutter = "0.9";
+imports.gi.versions.GtkClutter = "0.9";
+
+Gtk = imports.gi.Gtk;
+Clutter = imports.gi.Clutter;
+GtkClutter = imports.gi.GtkClutter;
+GdkPixbuf = imports.gi.GdkPixbuf;
+GConf = imports.gi.GConf;
+GLib = imports.gi.GLib;
+Pango = imports.gi.Pango;
+GObject = imports.gi.GObject;
 
 Clutter.init(null, null);
 GConf.init(null, null);



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