[gnome-games/gsoc-seed-games] [lightsoff] Consume "new" stock item from libgames-support
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/gsoc-seed-games] [lightsoff] Consume "new" stock item from libgames-support
- Date: Fri, 12 Jun 2009 20:17:53 -0400 (EDT)
commit 4520f77267b10c183234a6ac233163dc8c0f89a2
Author: Tim Horton <hortont svn gnome org>
Date: Fri Jun 12 18:36:56 2009 -0400
[lightsoff] Consume "new" stock item from libgames-support
This required changing the 'lightsoff' script to set
LD_LIBRARY_PATH to include prefix/share/gnome-games-common,
which is where libgames-support is installed at the moment.
lightsoff/lightsoff.in | 8 +++-----
lightsoff/main-window.ui | 2 +-
lightsoff/main.js.in | 3 +++
3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/lightsoff/lightsoff.in b/lightsoff/lightsoff.in
index 9c3ff1a..d1e96be 100644
--- a/lightsoff/lightsoff.in
+++ b/lightsoff/lightsoff.in
@@ -1,7 +1,5 @@
-#!/usr/bin/env seed
+#!/usr/bin/env sh
-file_prefix = '@prefix@' + "/share/gnome-games/lightsoff/";
-imports.searchPath.unshift(file_prefix);
-
-main = imports.main;
+export LD_LIBRARY_PATH= prefix@/share/gnome-games-common:$LD_LIBRARY_PATH
+/usr/bin/env seed @prefix@/share/gnome-games/lightsoff/main.js
diff --git a/lightsoff/main-window.ui b/lightsoff/main-window.ui
index 391c391..d0fe963 100644
--- a/lightsoff/main-window.ui
+++ b/lightsoff/main-window.ui
@@ -21,7 +21,7 @@
<property name="visible">True</property>
<child>
<object class="GtkImageMenuItem" id="imagemenuitem11">
- <property name="label">gtk-new</property>
+ <property name="label">games-new-game</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
diff --git a/lightsoff/main.js.in b/lightsoff/main.js.in
index cd07e3f..bdd1fc1 100755
--- a/lightsoff/main.js.in
+++ b/lightsoff/main.js.in
@@ -7,8 +7,11 @@ GtkClutter = imports.gi.GtkClutter;
Clutter = imports.gi.Clutter;
Gtk = imports.gi.Gtk;
GtkBuilder = imports.gtkbuilder;
+GnomeGamesSupport = imports.gi.GnomeGamesSupport;
GtkClutter.init(Seed.argv);
+GnomeGamesSupport.runtime_init("lightsoff");
+GnomeGamesSupport.stock_init();
Game = imports.Game;
Settings = imports.Settings;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]