[caribou/kb-rework: 12/13] Add caribou.schemas



commit 2bd19aa2a510b630a64f7c090b3fbd7eef75f120
Author: Joaquim Rocha <jrocha igalia com>
Date:   Wed May 26 12:32:53 2010 +0200

    Add caribou.schemas
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613229

 configure.ac         |    4 ++++
 data/Makefile.am     |   11 ++++++++++-
 data/caribou.schemas |   15 +++++++++++++++
 3 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 209a8b7..b2bd70d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,10 @@ AM_SILENT_RULES([yes])
 dnl == check for python ==
 AM_PATH_PYTHON(2.4)
 
+dnl == check for GConf ==
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
+AM_GCONF_SOURCE_2
+
 dnl == Library dependencies ==
 PYGTK_REQUIRED=2.16
 PYCLUTTER_REQUIRED=1.0
diff --git a/data/Makefile.am b/data/Makefile.am
index 7b7315a..bef98f2 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,5 +2,14 @@ SUBDIRS = keyboards
 
 gtkbuilderdir = $(datadir)/caribou
 gtkbuilder_DATA = caribou-prefs.ui
+schemadir = $(GCONF_SCHEMA_FILE_DIR)
+schema_DATA = caribou.schemas
 
-EXTRA_DIST = $(gtkbuilder_DATA)
+EXTRA_DIST = $(gtkbuilder_DATA) $(schema_DATA)
+
+# installation of schemas
+if GCONF_SCHEMAS_INSTALL
+install-data-hook:
+	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+		$(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
+endif
\ No newline at end of file
diff --git a/data/caribou.schemas b/data/caribou.schemas
new file mode 100644
index 0000000..d19b1a6
--- /dev/null
+++ b/data/caribou.schemas
@@ -0,0 +1,15 @@
+<gconfschemafile>
+  <schemalist>
+    <schema>
+      <key>/schemas/apps/caribou/osk/layout</key>
+      <applyto>/apps/caribou/osk/layout</applyto>
+      <owner>caribou</owner>
+      <type>string</type>
+      <default>qwerty.xml</default>
+      <locale name="C">
+        <short>The layout Caribou should use.</short>
+        <long>The layout should be in the data directory of Caribou (usually /usr/share/caribou/keyboards) and should be a .xml or .json file.</long>
+      </locale>
+    </schema>
+  </schemalist>
+</gconfschemafile>
\ No newline at end of file



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