From 49d65611edf1a28df001fef2fa9896919544729d Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 13 Oct 2012 11:28:28 +0200 Subject: add gsettings schema and remove mateconf one --- Makefile.am | 25 +++++++--------- mate-control-center.schemas.in | 49 ------------------------------- org.mate.control-center.gschema.xml.in.in | 25 ++++++++++++++++ po/POTFILES.in | 2 +- 4 files changed, 36 insertions(+), 65 deletions(-) delete mode 100644 mate-control-center.schemas.in create mode 100644 org.mate.control-center.gschema.xml.in.in diff --git a/Makefile.am b/Makefile.am index 42039d93..1e337dc4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,15 +13,19 @@ if HAVE_TYPING_BREAK SUBDIRS += typing-break endif -schemasdir = @MATECONF_SCHEMA_FILE_DIR@ -schemas_in_files = mate-control-center.schemas.in -schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) -@INTLTOOL_SCHEMAS_RULE@ +@INTLTOOL_XML_NOMERGE_RULE@ +gsettings_SCHEMAS = org.mate.control-center.gschema.xml +@GSETTINGS_RULES@ + +%.gschema.xml.in: %.gschema.xml.in.in Makefile + $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ ACLOCAL_AMFLAGS = -I m4 CLEANFILES = \ - $(schemas_DATA) + $(gsettings_SCHEMAS_in) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid DISTCLEANFILES = \ mate-doc-utils.make @@ -46,7 +50,7 @@ MAINTAINERCLEANFILES = \ `find "$(srcdir)" -type f -name Makefile.in -print` EXTRA_DIST = \ - $(schemas_in_files) \ + $(gsettings_schemas_in_in) \ MAINTAINERS \ mate-doc-utils.make @@ -56,15 +60,6 @@ GITIGNOREFILES=m4 -include $(top_srcdir)/git.mk -install-data-local: -if MATECONF_SCHEMAS_INSTALL - if test -z "$(DESTDIR)" ; then \ - for p in $(schemas_DATA) ; do \ - MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/$$p >&1 > /dev/null; \ - done \ - fi -endif - dist-hook: @if test -d "$(srcdir)/.git"; \ then \ diff --git a/mate-control-center.schemas.in b/mate-control-center.schemas.in deleted file mode 100644 index 6ddacae7..00000000 --- a/mate-control-center.schemas.in +++ /dev/null @@ -1,49 +0,0 @@ - - - - - /schemas/apps/control-center/appearance/more_backgrounds_url - /apps/control-center/appearance/more_backgrounds_url - control-center - string - http://art.gnome.org/backgrounds/ - - More backgrounds URL - - URL for where to get more desktop backgrounds. If set to an - empty string the link will not appear. - - - - - /schemas/apps/control-center/appearance/more_themes_url - /apps/control-center/appearance/more_themes_url - control-center - string - http://art.gnome.org/themes/ - - More themes URL - - URL for where to get more desktop themes. If set to an - empty string the link will not appear. - - - - - /schemas/apps/control-center/network/current_location - /apps/control-center/network/current_location - control-center - string - - - Current network location - - Set this to your current location name. This is used to - determine the appropriate network proxy configuration. - - - - - - - diff --git a/org.mate.control-center.gschema.xml.in.in b/org.mate.control-center.gschema.xml.in.in new file mode 100644 index 00000000..3adf65d4 --- /dev/null +++ b/org.mate.control-center.gschema.xml.in.in @@ -0,0 +1,25 @@ + + + + + + + + 'http://art.gnome.org/backgrounds/' + <_summary>More backgrounds URL + <_description>URL for where to get more desktop backgrounds. If set to an empty string the link will not appear. + + + 'http://art.gnome.org/themes/' + <_summary>More themes URL + <_description>URL for where to get more desktop themes. If set to an empty string the link will not appear. + + + + + '' + <_summary>Current network location + <_description>Set this to your current location name. This is used to determine the appropriate network proxy configuration. + + + diff --git a/po/POTFILES.in b/po/POTFILES.in index c5c0aaa0..2b2b9d05 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,7 +1,7 @@ # Add files with translateable strings here. # Please keep this file sorted alphabetically. [encoding: UTF-8] -mate-control-center.schemas.in +org.mate.control-center.gschema.xml.in.in capplets/about-me/eel-alert-dialog.c capplets/about-me/e-image-chooser.c capplets/about-me/mate-about-me.c -- cgit v1.2.1