[gnome-control-center] Add schemas file



commit 56361c81f324cf633b23fdf1ae9ebb686c09ad6a
Author: William Jon McCann <jmccann redhat com>
Date:   Sat Aug 22 11:25:29 2009 -0400

    Add schemas file

 Makefile.am                     |   18 ++++++++++++++++++
 gnome-control-center.schemas.in |   21 +++++++++++++++++++++
 po/POTFILES.in                  |    1 +
 3 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 79f153e..e360dee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,8 +8,16 @@ if HAVE_TYPING_BREAK
 SUBDIRS += typing-break
 endif
 
+schemasdir   = @GCONF_SCHEMA_FILE_DIR@
+schemas_in_files = gnome-control-center.schemas.in
+schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
+ INTLTOOL_SCHEMAS_RULE@
+
 ACLOCAL_AMFLAGS = -I m4
 
+CLEANFILES = \
+	$(schemas_DATA)
+
 DISTCLEANFILES = \
 	gnome-doc-utils.make
 
@@ -33,6 +41,7 @@ MAINTAINERCLEANFILES = \
 	`find "$(srcdir)" -type f -name Makefile.in -print`
 
 EXTRA_DIST = \
+	$(schemas_in_files) \
 	MAINTAINERS \
 	gnome-doc-utils.make
 
@@ -41,3 +50,12 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --disable-update-mimedb
 GITIGNOREFILES=m4
 
 -include $(top_srcdir)/git.mk
+
+install-data-local:
+if GCONF_SCHEMAS_INSTALL
+	if test -z "$(DESTDIR)" ; then \
+	for p in $(schemas_DATA) ; do \
+	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/$$p >&1 > /dev/null; \
+	done \
+	fi
+endif
diff --git a/gnome-control-center.schemas.in b/gnome-control-center.schemas.in
new file mode 100644
index 0000000..baaf68c
--- /dev/null
+++ b/gnome-control-center.schemas.in
@@ -0,0 +1,21 @@
+<gconfschemafile>
+  <schemalist>
+
+    <schema>
+      <key>/schemas/apps/control-center/network/current_location</key>
+      <applyto>/apps/control-center/network/current_location</applyto>
+      <owner>control-center</owner>
+      <type>string</type>
+      <default>TRUE</default>
+      <locale name="C">
+        <short>Current network location</short>
+        <long>
+          Set this to your current location name.  This is used to
+          determine the appropriate network proxy configuration.
+        </long>
+      </locale>
+    </schema>
+
+  </schemalist>
+</gconfschemafile>
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 4dcb7b3..ccf81df 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
 # Add files with translateable strings here.
 # Please keep this file sorted alphabetically.
 [encoding: UTF-8]
+gnome-control-center.schemas.in
 capplets/about-me/eel-alert-dialog.c
 capplets/about-me/e-image-chooser.c
 capplets/about-me/fingerprint-strings.h



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