summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-04-21 15:42:37 -0500
committerShaun McCance <shaunm@gnome.org>2010-04-23 15:21:36 -0500
commit0d8bb5128dfce4c8c8411a4f7b2d610c6342ac01 (patch)
tree80d345cfb949a032b7fe85cf10c716f817c5ac86 /data
parent29e4dcbe058b7a3e6da68043beecdcfef7b1ca18 (diff)
downloadyelp-0d8bb5128dfce4c8c8411a4f7b2d610c6342ac01.tar.gz
Use GSettings for show-cursor and font-adjustment preferences
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am7
-rw-r--r--data/org.gnome.yelp.gschema.xml14
2 files changed, 21 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 0459f73a..c6667d1d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,6 +3,13 @@ SUBDIRS = icons ui
@INTLTOOL_XML_RULE@
@INTLTOOL_SCHEMAS_RULE@
+gsettingsschema_DATA = org.gnome.yelp.gschema.xml
+@GSETTINGS_CHECK_RULE@
+if GSETTINGS_SCHEMAS_INSTALL
+install-data-hook:
+ $(gschema_compile) $(DESTDIR)$(gsettingsschemadir)
+endif
+
tocdir = $(datadir)/yelp
toc_DATA = man.xml toc.xml scrollkeeper.xml info.xml
diff --git a/data/org.gnome.yelp.gschema.xml b/data/org.gnome.yelp.gschema.xml
new file mode 100644
index 00000000..4725ec94
--- /dev/null
+++ b/data/org.gnome.yelp.gschema.xml
@@ -0,0 +1,14 @@
+<schemalist>
+<schema id="org.gnome.yelp" path="/org/gnome/yelp">
+ <key name="show-cursor" type="b">
+ <default>false</default>
+ </key>
+ <key name="font-adjustment" type="i">
+ <default>0</default>
+ <range>
+ <min>-3</min>
+ <max>10</max>
+ </range>
+ </key>
+</schema>
+</schemalist>