[gnome-games] [lightsoff] Add GConf schema for score/theme keys
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [lightsoff] Add GConf schema for score/theme keys
- Date: Thu, 16 Jul 2009 22:30:46 +0000 (UTC)
commit f5eca53f74f06d2f68a1590112b7b5a80a4e658f
Author: Tim Horton <hortont424 gmail com>
Date: Mon Jun 29 01:20:36 2009 -0400
[lightsoff] Add GConf schema for score/theme keys
lightsoff/Makefile.am | 18 ++++++++++++++++++
lightsoff/lightsoff.schemas.in | 30 ++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/lightsoff/Makefile.am b/lightsoff/Makefile.am
index 782cc70..9717e1f 100644
--- a/lightsoff/Makefile.am
+++ b/lightsoff/Makefile.am
@@ -16,6 +16,10 @@ lojs_DATA = \
bin_SCRIPTS = \
lightsoff
+schema_in_files = lightsoff.schemas.in
+schemadir = $(GCONF_SCHEMA_FILE_DIR)
+schema_DATA = $(schema_in_files:.schemas.in=.schemas)
+
desktop_in_files = lightsoff.desktop.in.in
desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
@@ -34,3 +38,17 @@ EXTRA_DIST = \
Settings.js \
settings.ui \
main-window.ui
+
+install-schemas-local: $(schema_DATA)
+if GCONF_SCHEMAS_INSTALL
+ if test -z "$(DESTDIR)" ; then \
+ for p in $^ ; do \
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p 2>&1 > /dev/null; \
+ done \
+ fi
+endif
+
+install-data-local: install-schemas-local
+
+ INTLTOOL_SCHEMAS_RULE@
+
diff --git a/lightsoff/lightsoff.schemas.in b/lightsoff/lightsoff.schemas.in
new file mode 100644
index 0000000..d73622c
--- /dev/null
+++ b/lightsoff/lightsoff.schemas.in
@@ -0,0 +1,30 @@
+<gconfschemafile>
+ <schemalist>
+
+ <schema>
+ <key>/schemas/apps/lightsoff/theme</key>
+ <applyto>/apps/lightsoff/theme</applyto>
+ <owner>lightsoff</owner>
+ <type>string</type>
+ <default>Tango</default>
+ <locale name="C">
+ <short>The theme to use</short>
+ <long>The title of the tile theme to use.</long>
+ </locale>
+ </schema>
+
+ <schema>
+ <key>/schemas/apps/lightsoff/score</key>
+ <applyto>/apps/lightsoff/score</applyto>
+ <owner>lightsoff</owner>
+ <type>int</type>
+ <default>1</default>
+ <locale name="C">
+ <short>The current score</short>
+ <long>The users's most recent score.</long>
+ </locale>
+ </schema>
+
+ </schemalist>
+
+</gconfschemafile>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]